📜  带有 EF 核心的存储过程 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:32.346000             🧑  作者: 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();