With Entity Framework from Microsoft our functions were imported to model as composable and we could use them in LINQ scenarios like this:
Code: Select all
from fts in this.Context.GetClientsUsingFts(term)
join ...
where ...
select fts.Id;
But with DevArt Entity Model we can not import our functions. The next message is appears:
"Cannot create method for a storage function ... that can be composed. Only stored procedures may be mapped"
With "Consealed Function" flag we can execute functions directly from context but they are not working with LINQ scenarious. (((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<...> is used in generated code).
Please help us with solution how to support our scenarious.
Demo function which can not be imported to conceptual model:
Code: Select all
CREATE FUNCTION demoFunction(IN keywords character varying)
RETURNS TABLE(par integer, rank real) AS
$BODY$
SELECT "Id" as par, value as rank FROM demoTable;
$BODY$
LANGUAGE sql