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
I would be nice to be able to configure Dapper to respect 'required' annotations:
publicclassDataResult{publicrequiredstringStringValue{get;set;}publicrequiredintIntValue{get;set;}}
...
await connectionQueryAsync<DataResult>("[proc_MyStoredProc]");// Should throw an exception if `StringValue` or `IntValue` are not provided
I doubt we would add this to vanilla Dapper, due to ever-increasing complexity - but: Dapper.AOT already detects required to ensure that the values get assigned appropriately; we could, perhaps, consider adding an attribute such as [EnforceRequired([true])] that enables this.
I would be nice to be able to configure Dapper to respect 'required' annotations:
Suggested API changes:
The text was updated successfully, but these errors were encountered: