コード例 #1
0
 public void InsertTaxpayerdocument(taxpayerdocument taxpayerdocument)
 {
     if ((taxpayerdocument.EntityState != EntityState.Detached))
     {
         this.ObjectContext.ObjectStateManager.ChangeObjectState(taxpayerdocument, EntityState.Added);
     }
     else
     {
         this.ObjectContext.taxpayerdocument.AddObject(taxpayerdocument);
     }
 }
コード例 #2
0
 public void DeleteTaxpayerdocument(taxpayerdocument taxpayerdocument)
 {
     if ((taxpayerdocument.EntityState != EntityState.Detached))
     {
         this.ObjectContext.ObjectStateManager.ChangeObjectState(taxpayerdocument, EntityState.Deleted);
     }
     else
     {
         this.ObjectContext.taxpayerdocument.Attach(taxpayerdocument);
         this.ObjectContext.taxpayerdocument.DeleteObject(taxpayerdocument);
     }
 }
コード例 #3
0
 public void UpdateTaxpayerdocument(taxpayerdocument currenttaxpayerdocument)
 {
     this.ObjectContext.taxpayerdocument.AttachAsModified(currenttaxpayerdocument, this.ChangeSet.GetOriginal(currenttaxpayerdocument));
 }