标签:type store obj man default var parameter anti convert
public stuclass UPDA(int id)
{
SqlParameter[] par = new SqlParameter[]
{
new SqlParameter ("StuID",id)
};
DataTable dt = DbHelperSQL.ExecuteDataTable(DAL.DbHelperSQL.ConnB2c, CommandType.StoredProcedure, "UP_FANTIAN", par);
var d = JsonConvert.SerializeObject(dt);
stuclass sc = JsonConvert.DeserializeObject<List<stuclass>>(d).FirstOrDefault();
return sc;
}
标签:type store obj man default var parameter anti convert
原文地址:https://www.cnblogs.com/fsl123/p/9387584.html