Hello,
i have two tables in DB: Foo and Bar
Using Entity Framework i want to create base entity which will contain properties which both tables have.
For example Foo has columns Id,CreateDate,FooValue and Bar has Id,CreateDate,BarValue
- So BaseEntity should have Id and CreateDate properties
- Foo should inherit BaseEntity and have FooValue
- Bar should inherit BaseEntity and have BarValue
How to map properties to their tables in DB?