コード例 #1
0
        private void FixupCASH_PAYMENT(CASH_PAYMENT previousValue)
        {
            if (previousValue != null && ReferenceEquals(previousValue.PAYMENT, this))
            {
                previousValue.PAYMENT = null;
            }

            if (CASH_PAYMENT != null)
            {
                CASH_PAYMENT.PAYMENT = this;
            }
        }
コード例 #2
0
 public void DeleteById(int Id)
 {
     CASH_PAYMENT cPayment = new CASH_PAYMENT() { ID = Id };
     Delete(cPayment);
 }
コード例 #3
0
 public void Delete(CASH_PAYMENT Entity)
 {
     Context.CASH_PAYMENT.Attach(Entity);
     Context.DeleteObject(Entity);
 }
コード例 #4
0
 public void Update(CASH_PAYMENT Entity)
 {
     Context.CASH_PAYMENT.Attach(Entity);
     Context.ObjectStateManager.ChangeObjectState(Entity, System.Data.EntityState.Modified);
 }
コード例 #5
0
 public void Insert(CASH_PAYMENT Entity)
 {
     Context.CASH_PAYMENT.AddObject(Entity);
 }
コード例 #6
0
 public List<CASH_PAYMENT> Search(CASH_PAYMENT Entity, int PageSize, int PageIndex, out int TotalRecords, string OrderExp, Util.SortDirection SortDirection)
 {
     throw new NotImplementedException();
 }
コード例 #7
0
ファイル: PAYMENT.cs プロジェクト: gertgjoka/fashion-commerce
     private void FixupCASH_PAYMENT(CASH_PAYMENT previousValue)
     {
         if (previousValue != null && ReferenceEquals(previousValue.PAYMENT, this))
         {
             previousValue.PAYMENT = null;
         }
 
         if (CASH_PAYMENT != null)
         {
             CASH_PAYMENT.PAYMENT = this;
         }
     }