更新时间:2023-02-16 09:48:37
您可以使用FromSQL方法:
You can use the FromSQL method:
var blogs = context.Blogs .FromSql("EXECUTE dbo.GetMostPopularBlogs") .ToList();
https://docs.microsoft.com/zh-我们/ef/core/querying/raw-sql
使用身份验证的EF Core 3.1 =集成Active Directory
如何在 ASP.NET Core 中使用 Active Directory 身份验证?
如何使用 ASP.NET Core 从查询字符串中读取值?
如何使用ASP.NET Core从查询字符串中读取值?
如何在单元测试中使用环境变量(.net core)
如何在 .NET Core 中使用 PROVIDER 读取连接字符串?
如何在asp.net-core 2.0中进行交易?
如何在 .NET Core 的 xUnit 测试中使用 NLog?