In the database, I have two tables PersonalDetails and Officers. There's one-to-many relationship between them.(One person can hold different positions in the same company at different periods). I'm using Entity Framework code first approach to communicate with the database. So far I had one entity called Officer that mapped to a join of the above two tables, But now that I have to perform CRUD operations on Officer this makes me have separate entities for them. Now the question is can I somehow leave the Officer entity as it is but instead of mapping to a view in the database have it descend from the two entities I will create and possibly be able insert/update it and have the changes reflected on the corresponding entities.
Here are the entities:(I've omitted the C# rules for a class definition for brevity )
PersonDetails{Pin,FirstName,LastName}
Officer{OfficerID,Pin,Position,ValidThru}
I will use these entities when I need to update/insert. But in user administration panel, I need to show combined information about users(or Officers).For instance:
Pin FirstName LastName Position ValidThru