public void InsertCLItblCompanyUser(CLItblCompanyUser cLItblCompanyUser) { if ((cLItblCompanyUser.EntityState != EntityState.Detached)) { this.ObjectContext.ObjectStateManager.ChangeObjectState(cLItblCompanyUser, EntityState.Added); } else { this.ObjectContext.CLItblCompanyUsers.AddObject(cLItblCompanyUser); } }
public void DeleteCLItblCompanyUser(CLItblCompanyUser cLItblCompanyUser) { if ((cLItblCompanyUser.EntityState != EntityState.Detached)) { this.ObjectContext.ObjectStateManager.ChangeObjectState(cLItblCompanyUser, EntityState.Deleted); } else { this.ObjectContext.CLItblCompanyUsers.Attach(cLItblCompanyUser); this.ObjectContext.CLItblCompanyUsers.DeleteObject(cLItblCompanyUser); } }
public void UpdateCLItblCompanyUser(CLItblCompanyUser currentCLItblCompanyUser) { this.ObjectContext.CLItblCompanyUsers.AttachAsModified(currentCLItblCompanyUser, this.ChangeSet.GetOriginal(currentCLItblCompanyUser)); }