Example #1
0
        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();
        }
Example #2
0
 public static void ChuDe_Insert(Info sv)
 {
     db1.ChuDe_Insert(sv);
 }