ssdl

Entity Framework - Entity Mapping problem

百般思念 提交于 2019-12-12 13:12:10
问题 I have two tables: Address and Contact which are joined on contactID (in Contact). Both of these tables have entities in my Entity data model (EF 4.0) and I do not wan't to modify them. I do want to create a new entity that contains information from both entities. What I did so far: In CSDL: <EntityContainer...> <EntitySet Name="AddressTest" EntityType="WebGearsModel.Test" /> <EntitySet Name="ContactTest" EntityType="WebGearsModel.Test" /> </EntityContainer> <EntityType Name="Test"> <Key>