开发者

Entity Framework CreatedBy fields not updating

开发者 https://www.devze.com 2022-12-12 07:53 出处:网络
Using Entity Framework I have the fields: o CreatedOn (datetime) o CreatedBy (nvarchar(50)) o ModifiedOn (datetime)

Using Entity Framework I have the fields:

  o CreatedOn (datetime)
  o CreatedBy (nvarchar(50))
  o ModifiedOn (datetime)
  o ModifiedBy (nvarchar(50))

When I add data to my table it is not adding/updating data to these columns. Am I missing something?

This is a similar question to subsonic Cre开发者_C百科atedBy fields not updating


Nothing in the EF will automatically populate these. You can do it on the DB server or in code (e.g., in a Repository).

0

精彩评论

暂无评论...
验证码 换一张
取 消