Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        //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
        }
Ejemplo n.º 3
0
 internal void Insert(KyLuatEntities kyluatenti)
 {
     throw new NotImplementedException();
 }