Dapper sql入参
//防SQL注入攻击 var parms = new { userId = userId, pwd = pwd }; //DynamicParameters parms = new DynamicParameters(); //parms.Add("userId", userId); //parms.Add("pwd", pwd); var res = SqlHelperRead.GetModel<UserEx>(sql, parms);
ADO sql入参
SqlParameter[] pms = new SqlParameter[] { new SqlParameter("@image",SqlDbType.Image){Value= data}, };
标签:userId,入参,pwd,sql,new,parms From: https://www.cnblogs.com/yuanshuo/p/17701891.html