Пример #1
0
 public void InSertCauHoi(string taikhoan, string tieude, string noidung)
 {
     hoctuvungLINQDataContext db = new hoctuvungLINQDataContext();
     CauHoi_DienDan chdd = new CauHoi_DienDan();
     chdd.CauHoiID=Guid.NewGuid();
     chdd.taikhoan = taikhoan;
     chdd.TieuDe = tieude;
     chdd.NoiDung = noidung;
     chdd.NgayGoi = DateTime.Now;
     db.CauHoi_DienDans.InsertOnSubmit(chdd);
     db.SubmitChanges();
 }
 partial void DeleteCauHoi_DienDan(CauHoi_DienDan instance);
 partial void InsertCauHoi_DienDan(CauHoi_DienDan instance);
 partial void UpdateCauHoi_DienDan(CauHoi_DienDan instance);
		private void detach_CauHoi_DienDans(CauHoi_DienDan entity)
		{
			this.SendPropertyChanging();
			entity.NguoiDung = null;
		}