XDataExcludeProperty wrong update?

Using [XDataExcludeProperty] makes PUT set NULL to excluded properties. 


IMO, a more correct behavior would be to exclude the property from the UPDATE sql

Guess once you use [XDataExcludeProperty] you have to use PATCH always, unless you can set the value to the excluded fields from other included properties.

I guess by using a Middleware one can enforce the use of PATCH only methods to modify entities.

Regards,

[XDataExcludeProperty] only controls JSON serialization. If you want a control at database-level, then change your Aurelius mapping of your entity. There are options like TColumnProp.NoUpdate that you can use to avoid Aurelius adding that column in an UPDATE SQL statement.


http://www.tmssoftware.biz/business/aurelius/doc/web/column.html

Thanks Wagner.