You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the method MergeAll is being invoked via dynamic approach, an identity field parameter issue is being thrown if the underlying schema/table has an identify field and if it weren't provided via the supplied list of dynamic objects even the other fields were defined as the qualifiers.
Exception Message:
Microsoft.Data.SqlClient.SqlException: 'Must declare the scalar variable "@id".
Statement(s) could not be prepared.'
Bug Description
When the method
MergeAll
is being invoked via dynamic approach, an identity field parameter issue is being thrown if the underlying schema/table has an identify field and if it weren't provided via the supplied list of dynamic objects even the other fields were defined as the qualifiers.Exception Message:
Microsoft.Data.SqlClient.SqlException: 'Must declare the scalar variable "@id".
Statement(s) could not be prepared.'
Schema and Model:
Created adhocly, see below.
No underlying model/class since the invocation is dynamic.
How to Replicate?
Simply call the method like below.
Library Version:
Example: RepoDb v1.12.8-beta4 and RepoDb.SqlServer v1.1.3
The text was updated successfully, but these errors were encountered: