ADO.NET操作数据库的写法

///
///
public void Student(Student sd)
{
    List<SqlParameter> sqlList = new List<SqlParameter>();
    sqlList.Clear();
    Hashtable ht = new  Hashtable();
    string fields = "";
    //姓名
    fields+="";
    sqlList.Add(new SqlParameter("@name","sd.Name")) ;
    //年龄
    fields+=",";
    sqlList.Add(new SqlParameter(""))        
}

相关推荐