I am a newbie. I have been able to Add new entities where there is a One-To-Many Relation. I am having a problem (don't Know how to do it) adding a new Entity when the relation is using Many-To-Many.
In my EDM I have:
Orgs
<Scalar Properties>
a. Org_ID (Identity Field)
b. OrgName
c. OrgDesc
<Navigation Properties>
Building_orgs_RelationBuildings
<Scalar Properties>
a) Building_ID (Identity Field)
b) Building_Desc
<Navigation Properties>
Building_orgs_RelationOrg_Building_Relation
a) Building_org_ID (Identity Field)
b) Org_ID
c) Building_ID
<Navigation Properties>
Building
Org
I want to:
- Insert New Orgs
- Delete Existing Org
- Reassign Org To different Building
- Update Org
Can some please provide a sample on how to do it using the mentioned EDM? VB code will be appreciated.