public void InsertOrUpdate(OrganizationOrganizationRel OrganizationOrganizationrel)
 {
     if (OrganizationOrganizationrel.Id == default(int))
     {
         // New entity
         context.OrganizationOrganizationRels.Add(OrganizationOrganizationrel);
     }
     else
     {
         // Existing entity
         context.Entry(OrganizationOrganizationrel).State = EntityState.Modified;
     }
 }
 public void InsertOrUpdateOrganizationOrganization(OrganizationOrganizationRel organizationOrganizationRel)
 {
     if (organizationOrganizationRel.Id == default(int))
     {
         // New entity
         _ctx.OrganizationOrganizationRels.Add(organizationOrganizationRel);
     }
     else
     {
         // Existing entity
         _ctx.Entry(organizationOrganizationRel).State = EntityState.Modified;
     }
 }