views:

60

answers:

1

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 CreatedBy fields not updating

+1  A: 

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

Craig Stuntz