Dixin / EntityFramework.Functions

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, and model defined functions.
https://weblogs.asp.net/Dixin/EntityFramework.Functions
MIT License
79 stars 27 forks source link

FunctionImport with multiple results don't support ComplexTypes as return #24

Open artur-moreira opened 7 years ago

artur-moreira commented 7 years ago

On the method "GetModelEntitySets" when the stored procedure has more than one result, he tries to find the returnClrType as EntitySets, throwing an exception "clrType for method {methodInfo.Name} is not supported in conceptual model as entity set".

If we can validate that the return type is not a primitive type, in this case is a pair of ComplexTypes, and return null on this method; it actually works as expected.