Closed Dot-H closed 1 month ago
Not sure what the best fix is TBH. Issue clearly comes from the CommandDefinition.ForCallback
call here which doesn't pass on the CommandFlags
.
But I am not sure why it's done that way. This ForCallback
method seems to be here to ensure that the inner command only contains parameters of type DynamicParameters
. I am not sure if it matters to also remove all the other attributes (including the Flags
).
It seems like
QueryAsync
when being passed themap
andsplitOn
argument ends up ignoring theNoCache
command flag.You can see https://github.com/DapperLib/Dapper/pull/2112 for a repro