📌  相关文章
📜  asp.net core sql server 存储过程 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:36.146000             🧑  作者: Mango

代码示例1
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();