I am looking for a solution in the following task:
I have many tables that differ from each other in few / non-columns (why this does not happen because I did not design the indicated database and cannot change it).
Example: Table user: columns {first name, last name, age} OldUser table: Columns (first name, last name, age, lastDateSeen}, etc.
Is there a way to tell EntityFramework 4.0 in Visual Studio to extend a base class consisting of _name, _surname, _age fields and their corresponding properties so that I can use this class for batch jobs in code?
My current solution is to make this class and use converters to pass values โโfrom the constant objects of its โobjectsโ. It works, but itโs not elegant, and I donโt like it.
I come from a java / hibernate environment where this is basic functionality.
(can I do the same for future refernce if I want classes to implement an interface?)
Thanks in advance.
source share