public void ChuDe_Insert(Info sv) { SqlConnection con = GetConnection(); con.Open(); SqlCommand cmd = new SqlCommand("tblChuDe_Insert", con); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add(new SqlParameter("@TenChuDe", sv.TenChuDe)); cmd.ExecuteNonQuery(); con.Close(); }
public static void ChuDe_Insert(Info sv) { db1.ChuDe_Insert(sv); }