cost 115 ms
使用 EF Core 6 在 ASP.NET Core 6 中使用 FromSqlInterpolated 執行存儲過程時出錯

[英]Error executing stored procedure with FromSqlInterpolated in ASP.NET Core 6 with EF Core 6

我在我的 SQL 服務器中有這個帶有單個參數並返回單個記錄的存儲過程。 當我這樣稱呼它時: 我收到這個錯誤 System.InvalidOperationException:“FromSqlRaw”或“FromSqlInterpolated”是使用不可組合的 SQL 調用的,並在其上組合了一個查詢 ...

在 SQL 服務器中在 Entity Framework Core 6 或更高版本中運行 FromSqlRaw 之前執行自定義 SQL

[英]Execute custom SQL before running FromSqlRaw in Entity Framework Core 6 or above in SQL Server

我只需要它為 SQL 服務器工作。 這是一個例子。 問題是關於一般方法。 https://entityframework-extensions.net有一個很好的擴展方法,叫做WhereBulkContains 。 它有點好,只是這個庫中的方法代碼被混淆了,並且當應用這些擴展方法在IQuerya ...


排序:
質量:
 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM