Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

asp.net core sql server stored procedure

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();
Source by referbruv.com #
 
PREVIOUS NEXT
Tagged: #core #sql #server #stored #procedure
ADD COMMENT
Topic
Name
5+4 =