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

on Feb 27, 2020 11:10 PM

how to retreive httpget data stored procedure in net core 3.1

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();
Download FREE API for Word, Excel and PDF in ASP.Net: Download