ASP.NET Core and EF Core 1.1 - Display data using Stored Procedure

后端 未结 2 972
走了就别回头了
走了就别回头了 2021-01-03 16:41

I have problem with my query. I want to display the result on a view.

[HttpGet]
[ValidateAntiForgeryToken]
public async Task Index()
{
          


        
2条回答
  •  旧巷少年郎
    2021-01-03 17:28

    From NuGet add System.Data.Common and System.Data.SqlClient. These allow ADO.NET commands to be run i.e. a stored procedure.

    https://forums.asp.net/post/6061777.aspx

提交回复
热议问题