How to map user defined table valued function to EF 6 database first entity collection?

c# entity-framework entity-framework-6 sql-server user-defined-functions

Popular Answer

The sole issue was a flaw in the entity framework that made it clear that it couldn't operate with connection strings of any other kind or name than "Entities" (its the default one what ADO.NET model creates). The T4 template was altered many years ago. I've never experienced an issue up to the point when I needed to call UDF. The connection string it was using had a different name, and I shared it with other libraries, but not all of them supported that peculiar form of connection string, which looked like:

connectionString="metadata=res:///DataModel.csdl|res:///DataModel.ssdl|res://*/..." one.

public partial class Entities : DbContext
{
    public Entities() : base("name=Entities")
    {
    }

    ...
}   

It began to function after I reinstalled it as shown above.

0
11/16/2017 7:06:02 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow