Inheritance: INotifyPropertyChanging, INotifyPropertyChanged
示例#1
0
        public void setValue( Payment aPayment ) {

            this.PaymentStu_Code = aPayment.Stu_Code;
            this.PaymentTer_Code = aPayment.Ter_Code;
            this.PaymentMoney = aPayment.Pay_Money;
            this.PaymentStatus = aPayment.Pay_Status;
        }
 //=======================================================
 //Author: Hiennv
 //Function : Insert
 //=======================================================
 public int Insert(Payment aPayment)
 {
     try
     {
         aDatabaseDA.Payment.Add(aPayment);
         return aDatabaseDA.SaveChanges();
     }
     catch (Exception ex)
     {
         throw new Exception(string.Format("PaymentBO.Insert :" + ex.Message));
     }
 }
 partial void UpdatePayment(Payment instance);
 partial void DeletePayment(Payment instance);
 partial void InsertPayment(Payment instance);
		private void detach_Payments(Payment entity)
		{
			this.SendPropertyChanging();
			entity.CashDetail = null;
		}
		private void attach_Payments(Payment entity)
		{
			this.SendPropertyChanging();
			entity.ChequeDetail = this;
		}
		private void detach_Payments(Payment entity)
		{
			this.SendPropertyChanging();
			entity.DonationCause = null;
		}
		private void attach_Payments(Payment entity)
		{
			this.SendPropertyChanging();
			entity.DonationType = this;
		}