public int update(KyLuatEntities obj) { int result = 0; string strQuery = "update dbo.KyLuat set HinhThucKL='" + obj.Hinhthuckyluat + "',LyDo='" + obj.Lydo + "' where MaKl='" + obj.Makl + "'"; DataConfig config = new DataConfig(); result = config.excuteNonquery(strQuery); return(result); }
//them csdl public int insert(KyLuatEntities obj) { int result = 0; string strQuery = "Insert into dbo.KyLuat(MaKl,hinhThucKL,LyDo) values ('" + obj.Makl + "','" + obj.Hinhthuckyluat + "','" + obj.Lydo + "')"; DataConfig config = new DataConfig(); //khoi tao result = config.excuteNonquery(strQuery); //thuc thi cau lenh return(result); //tra ve so ban ghi dc them }
internal void Insert(KyLuatEntities kyluatenti) { throw new NotImplementedException(); }