示例#1
0
        public void SuaThongTinLopADO(Lop lop)
        {
            if (connection.State != ConnectionState.Open)
            {
                connection.Open();
            }

            SqlCommand command = new SqlCommand("SuaThongTinLop", connection);

            command.CommandType = CommandType.StoredProcedure;

            command.Parameters.AddWithValue("@MaLop", lop.MaLop);
            command.Parameters.AddWithValue("@TenLop", lop.TenLop);
            command.Parameters.AddWithValue("@SiSo", lop.SiSo);
            command.Parameters.AddWithValue("@MaKhoi", lop.MaKhoi);

            command.ExecuteNonQuery();
            connection.Close();
        }
示例#2
0
 public void SuaThongTinLopBUS(Lop lop)
 {
     lopObject.SuaThongTinLopADO(lop);
 }