I need to create user-defined functions with table values, can I create from EF? Or do I only believe it by transaction sql and then represent it in the model? How would you work with EF in this case?
Note: I am working with EF approach code firts.
CREATE FUNCTION dbo.fnDetalleCaja(@desde datetime2, @hasta datetime2) RETURNS TABLE AS RETURN (SELECT .... WHERE ...)
The entity DetalleCaja would come out of that function. For EF it should be the same thing for all purposes.
For this case I create my table-value funtion by transact sql code and then I create my entity in my feature layer.
What is the way to work in this case?