Dapper-Extensions
Dapper-Extensions copied to clipboard
Update only select columns...
How do I specify columns as Insert and ReadOnly? For example, a table has a CreateDate that is required when inserting, but I don't necessarily want to update this column on update calls. Is there a way to specify such a property in the custom class mapping?
Currently that is not possible. I will look into it for a future version.
I upvote this feature as I also was in that situation where I have to differentiate between Insert/Update
@bastienJS I also need this feature. There is a critical distinction that needs to be drawn between Writable and Writable Once.
Who needs a temporary working solution can look my fork https://github.com/vilix13/Dapper-Extensions
It's comming on next release