时间:2021-07-01 10:21:17 帮助过:91人阅读
SqlParameter[] sqlParams = new SqlParameter[2];
sqlParams[0] = new SqlParameter("@RoleId", roleName);
sqlParams[1] = new SqlParameter("@Deleted", false) { DbType = System.Data.DbType.Boolean };
var q = Context.Database.SqlQuery<UserInfo>("exec GetUsersByRoleID @RoleId,@Deleted", sqlParams);
return q.ToListAsync();
SqlParameter 的使用
标签:let get text info params delete 使用 eid post