In ED 5.7.576.0 I get the message "Cannot create method for a storage function 'xxx' that can be composed. Only stored procedures may be mapped." when I right click a function and select "Create Method". Not sure why its saying this. It currently adds the correct details for my functions to the
.ssdl and all that is missing is for ED to spit out something like the following in the database context template.
Code: Select all
[DbFunction("MyContext.Data.Models.Store", "fnGetPostPageNumber")]
public static int fnGetPostPageNumber(int postId, int pageSize)
{
throw new NotSupportedException("Direct calls are not supported.");
}
Is there any technical reason function mapping cannot be done?
This is for Linq to Entities with SQL Server 2014.