I have a sql function in a database that is mapped to an entity framework model.
When I add it my model, it returns a result which is of complex data type (usually named functionName_Result).
Is it possible to make such a function so that its return type is one of my model entities?
For example if I have a model-first entity framework model that contains A entity, can I make sql function in the database that returns A class instance?