你的位置: 码友网首页 / 资讯源列表 / How to pass a dynamic/variable list of values as SqlParameters with FromSqlRaw in EF Core

关于[How to pass a dynamic/variable list of values as SqlParameters with FromSqlRaw in EF Core]的摘要:

As a sort of follow up to my blog posts here and here I will show how to use a dynamic list of values a parameters when using FromSqlRaw. The condition in this case that you may sometimes be calling your method with 5 parameters, sometimes with 20 etc. Keep in mind that the maximum number of parameters with SQL Server is 2098!

原文地址: https://erikej.github.io/efcore/sqlserver/2020/04/20/use-dynamic-sqlparameters-with-fromsql.html

收录时间: 2020-04-22 浏览量: 1684 分类: Entity Framework Core

| 0 收藏 | 0