Query: FromSql with DbParameters throws Must declare the scalar variable/No mapping to a relational type ... SqlParameter #8721
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-bug
Milestone
Hi,
The 'FromSql' lost the parameters after 'Contains', 'GroupBy' ...
Steps to reproduce
CREATE TABLE [Table1]
(
[ID1] INT IDENTITY PRIMARY KEY NOT NULL
);
GO
CREATE TABLE [Table2]
(
[ID2] INT IDENTITY PRIMARY KEY NOT NULL,
[ID1] INT NOT NULL
);
GO
CREATE FUNCTION [MyFunc](@param1 int)
RETURNS TABLE AS
RETURN ( SELECT * FROM Table1 WHERE ID1 >= @param1 );
GO
Further technical details
EF Core version: 2.0.0-preview2-25179
Target framework: net46
Database Provider: SqlServer
Project (Console-net46):
EFCoreFromSqlParam.zip
I'm sorry for my English grammar.
Thanks.
The text was updated successfully, but these errors were encountered: