Entity Framework Database first How to alter entities to make them derive from a base class
问题 I have a database already full of tables with data in them. What I have seen is that all tables have 5 columns in common: Id-long, key IsDeleted, bit DateDeleted, SmallDatetime LastUpdated, SmallDatetime LastUpdatedUser, nvarchar Now, there are some common operations that are done based on those fields which currently are replicated everywhere What I want is to create a base class containing just these common attributes and the methods done to them and make every other entity derive from this