Exemple #1
0
        public void NhaXuatBan_Insert(Info sv)
        {
            SqlConnection con = GetConnection();
            con.Open();
            SqlCommand cmd = new SqlCommand("tblNhaXuatBan_Insert", con);
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.Parameters.Add(new SqlParameter("@TenNXB",sv.TenNXB ));
            cmd.Parameters.Add(new SqlParameter("@DiaChi",sv.DiaChi ));
            cmd.Parameters.Add(new SqlParameter("@DienThoai", sv.DienThoai));

            cmd.ExecuteNonQuery();
            con.Close();
        }
Exemple #2
0
 public static void NhaXuatBan_Insert(Info sv)
 {
     db1.NhaXuatBan_Insert(sv);
 }