Fixes the following errors when using entity types as return arguments in functions:
-
Error for entity types when in a .NET namespace other than
DbContext's: "TTTT for method MMMM is not supported in conceptual model as a structural type. This can be caused by a failure to register this type as complex." - Errors during migration and model validation of the type "(0,0) : error 0040: The Type XXXXX is not qualified with a namespace or alias. Only primitive types can be used without qualification."
This fork has a separate NuGet package named as Grammophone.EntityFramework.Functions and is a drop-in replacement for the original package.
EntityFramework.Functions library implements Entity Framework code first support for:
-
Stored procedures, with:
- single result type
- multiple result types
- output parameter
-
Table-valued functions, returning
- entity type
- complex type
-
Scalar-valued functions
- composable
- non-composable
- Aggregate functions
- Built-in functions
- Niladic functions
- Model defined functions
EntityFramework.Functions library works on .NET Standard with Entity Framework 6.4.0. It also works on .NET 4.0, .NET 4.5, .NET 4.6, .NET 4.7, .NET 4.8 with Entity Framework 6.1.0 and later. Entity Framework is the only dependency of this library.
It can be installed through Nuget:
dotnet add package EntityFramework.Functions
Or:
Install-Package EntityFramework.Functions -DependencyVersion Highest
See:
- Document: https://weblogs.asp.net/Dixin/EntityFramework.Functions
- Source code
- APIs
- Examples
- Add functions to entity model
- Stored procedure, with single result type
- Stored procedure, with output parameter
- Stored procedure, with multiple result types
- Table-valued function
- Scalar-valued function, non-composable
- Scalar-valued function, composable
- Aggregate function
- Built-in function
- Niladic function
- Version history
- Source code: https://github.com/Dixin/EntityFramework.Functions
- Nuget package: https://www.nuget.org/packages/EntityFramework.Functions