Passing JSON type as parameter to SQL Server 2016 stored procedure using ADO.Net in ASP.Net Core project

前端 未结 3 1215
梦谈多话
梦谈多话 2021-02-19 01:16

Can someone give example how to pass JSON type as parameter to SQL Server 2016 stored procedure using ADO.Net in C# ASP.Net Core Web Api project ? I want to see example of SQL

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-19 01:41

    For a simple example that shows the C# and the SQL, please see: https://chris.koester.io/index.php/2018/03/21/load-json-into-sql-server-using-a-stored-procedure-and-csharp/

    You probably have some higher level data layer approach in your C#, like with EF or something, but this will let you get a simple test setup using a good ol' ADO.Net SQLCommand.

提交回复
热议问题