Ejemplo n.º 1
0
 public void InsertDinhKem(tblDinhKem dinhkem)
 {
     int dinhkemID = GetMaxIDDinhKem();
       dinhkem.DinhKemID = dinhkemID + 1;
       ABDH_DemoDataContext _libraryContext = new ABDH_DemoDataContext();
       _libraryContext.tblDinhKems.InsertOnSubmit(dinhkem);
       _libraryContext.SubmitChanges();
 }
Ejemplo n.º 2
0
 public void InsertTailieu(tblTaiLieu tailieu)
 {
     int tailieuID = GetMaxIDTailieu();
       tailieu.TaiLieuID = tailieuID + 1;
       ABDH_DemoDataContext _libraryContext = new ABDH_DemoDataContext();
       _libraryContext.tblTaiLieus.InsertOnSubmit(tailieu);
       _libraryContext.SubmitChanges();
       tblDinhKem dinhkem = new tblDinhKem();
       dinhkem.TaiLieuID = tailieuID;
       InsertDinhKem(dinhkem);
 }
 partial void DeletetblDinhKem(tblDinhKem instance);
 partial void UpdatetblDinhKem(tblDinhKem instance);
 partial void InserttblDinhKem(tblDinhKem instance);
		private void detach_tblDinhKems(tblDinhKem entity)
		{
			this.SendPropertyChanging();
			entity.tblTaiLieu = null;
		}