You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
create or replace function my_table_func(enddate timestamptz)
returns setof my_table
In my DbContext I have declared:
[DbFunction("my_table_func")]
public static IQueryable<MyTable> MyTableFunc(DateTime? endDate = null)
{
throw new Exception("Not implemented in code; this is a DB function.");
}
When I try to generate an EF Migration, though, I get the following error:
System.InvalidOperationException: The DbFunction 'MyDbContext.MyTableFunc' has an invalid return type 'IQueryable<MyTable>'. Ensure that the return type can be mapped by the current provider.
Is it possible to create a DbMapping that I can use as an IQueryable<>?
I am using EF Core 2.1.4
The text was updated successfully, but these errors were encountered:
I have a Postgresql function with signature:
In my
DbContext
I have declared:When I try to generate an EF Migration, though, I get the following error:
Is it possible to create a
DbMapping
that I can use as anIQueryable<>
?I am using EF Core 2.1.4
The text was updated successfully, but these errors were encountered: