Dapper-Extensions icon indicating copy to clipboard operation
Dapper-Extensions copied to clipboard

Update only select columns...

Open dotnetsterer opened this issue 12 years ago • 5 comments

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?

dotnetsterer avatar Feb 14 '13 22:02 dotnetsterer

Currently that is not possible. I will look into it for a future version.

tmsmith avatar Mar 19 '13 13:03 tmsmith

I upvote this feature as I also was in that situation where I have to differentiate between Insert/Update

bastienJS avatar Nov 22 '13 19:11 bastienJS

@bastienJS I also need this feature. There is a critical distinction that needs to be drawn between Writable and Writable Once.

aluanhaddad avatar Nov 20 '16 23:11 aluanhaddad

Who needs a temporary working solution can look my fork https://github.com/vilix13/Dapper-Extensions

vilix13 avatar Jan 30 '17 03:01 vilix13

It's comming on next release

valfrid-ly avatar May 06 '21 22:05 valfrid-ly