DateCreated or Modified Column - Entity Framework or using triggers on SQL Server

后端 未结 4 2229
失恋的感觉
失恋的感觉 2020-12-16 00:52

After I read one question in attached link, I got a sense of how to set DateCreated and DateModified columns in Entity Framework and use it in my application. In the old SQ

4条回答
  •  情深已故
    2020-12-16 01:16

    Entity Framework 6 has interceptors which can be used to set created and modified. I wrote an article how to do it: http://marisks.net/2016/02/27/entity-framework-soft-delete-and-automatic-created-modified-dates/

提交回复
热议问题