📅  最后修改于: 2022-03-11 15:05:36.146000             🧑  作者: Mango
var emailAddressParam = new SqlParameter("@emailAddress", id.EmailAddress);
var passwordParam = new SqlParameter("@passwordHash", id.PasswordHash);
var users = context
.UserProfiles
.FromSqlRaw("exec sp_GetUsers @emailAddress, @passwordHash", emailAddressParam, passwordParam)
.ToList();