Example #1
0
 public void InsertCLItblCompanyUser(CLItblCompanyUser cLItblCompanyUser)
 {
     if ((cLItblCompanyUser.EntityState != EntityState.Detached))
     {
         this.ObjectContext.ObjectStateManager.ChangeObjectState(cLItblCompanyUser, EntityState.Added);
     }
     else
     {
         this.ObjectContext.CLItblCompanyUsers.AddObject(cLItblCompanyUser);
     }
 }
Example #2
0
 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);
     }
 }
Example #3
0
 public void UpdateCLItblCompanyUser(CLItblCompanyUser currentCLItblCompanyUser)
 {
     this.ObjectContext.CLItblCompanyUsers.AttachAsModified(currentCLItblCompanyUser, this.ChangeSet.GetOriginal(currentCLItblCompanyUser));
 }