entity framework - EntityFramework code-first ignoring derived columns when creating database -
i of tables in database have standard columns such createdby, modifiedby, createddatetime, modifieddatetime etc.
so, created interface properties , implemented interface in abstract base class. derived concrete classes base class.
this brand new application using code-first approach. when create database, derived properties ignored. tables created properties in derived classes.
i'm not sure why.
thank you.
i'm not sure different, tried again following changes , worked:
- gave dbcreator rights in database user
- changed properties in base class in format (similar change other properties):
public string createdby { get; set;}
Comments
Post a Comment