예제 #1
0
 public int insertCTDonDatHang(CTDonDatHang ctddh)
 {
     try
     {
         db.CTDonDatHangs.InsertOnSubmit(ctddh);
         db.SubmitChanges();
     }
     catch
     {
         return -1;
     }
     return 1;
 }
예제 #2
0
 partial void DeleteCTDonDatHang(CTDonDatHang instance);
예제 #3
0
 partial void UpdateCTDonDatHang(CTDonDatHang instance);
예제 #4
0
 partial void InsertCTDonDatHang(CTDonDatHang instance);
예제 #5
0
		private void detach_CTDonDatHangs(CTDonDatHang entity)
		{
			this.SendPropertyChanging();
			entity.Product = null;
		}
예제 #6
0
		private void attach_CTDonDatHangs(CTDonDatHang entity)
		{
			this.SendPropertyChanging();
			entity.DonDatHang = this;
		}