Call Stored Procedure using Entity Framework FromSqlRaw in ASP.Net Core

Last Reply one month ago By dharmendr

Posted one month ago

how to retreive httpget data stored procedure in net core 3.1

[HttpGet]
[Route("api/Talent/GetTalents")]
public async Task<IEnumerable<GetTalent>> GetTalents(GetTalent model)
{
    var param = new SqlParameter("@Id", model.Id);
    return await db.GetTalents.FromSqlRaw("EXEC sp_Tbl_Mst_TalentSelect @Id", param).ToListAsync();
}
You are viewing reply posted by: dharmendr one month ago.