Richard Hubley
Richard Hubley
I wonder if you could create a Default value attribute, and pass it a function to provide the insert functionality. Then maybe a another for always update. Might be a...
If you changed it to compare to "ID" instead of "id" does it work for you? Apparently ToUpper works better for Turkey, don't know if it fails for other cultures...
Setting a culture is tricky, you would need your code and Database to share the same culture which might not always be the case.
I don't think we can guarantee the order of Ids matches the Order or items passed to QueryAsync, so the Ids are not returned so you don't try and assign...
I don't that all connection objects support multiple async operations active on the same connection. other users should be aware this can cause issues.
This works everyone. There are tests for it https://github.com/StackExchange/Dapper/blob/cd751c21f67348a1327d1073b716f99563d44322/Dapper.Tests/EnumTests.cs#L17-L24 In order to Save it as a string do a ToString() on the enum value.