Open frankszymanski opened 7 years ago
The underlying issue seems to be in Function.DbModel.GetModelReturnParameters(). The Stored Procedure case tries to get the model types for the returns, but GetModelStructualType() only considers Entity and Complex types.
If I create a new GetModelType function that returns an EdmType instead of a StructuredType and calls model.GetModelPrimitiveType in addition to model.GetModelEntityType and model.GetModelComplexType, I can map to primitive types.
The database that I'm working to convert from model-first to code-first has stored procedures that return unnamed columns of basic types. The model-first function that is generated has a return type of
ObjectResult<Nullable<long>>
orObjectResult<string>.
Is this possible with your library?