Entity Framework DBContext Connection
I'm new to LINQ and LINQPad. Trying to establish a connection to my MVC context (Entity Framework (DbContext) but getting: Error: Cannot attach the file: 'C:\Program Files (x86)\LINQPad5\aspnet-Vincent-20151030091918.mdf' as database 'aspnet-Vincent-2015030091918'.
I am able to successfully connect to SQL Server when building data context automatically using Default (LINQ to SQL) but I'm assuming I would have better features if connecting via typed data context from your own assembly.
Are there advantages in attaching to the data context in my assembly? If so, what am I missing in the connection?
I am able to successfully connect to SQL Server when building data context automatically using Default (LINQ to SQL) but I'm assuming I would have better features if connecting via typed data context from your own assembly.
Are there advantages in attaching to the data context in my assembly? If so, what am I missing in the connection?
Comments
I did not have any problems generating a connection from a working application and the add connection dialog (choosing EF dbcontext). I got a hard coded link to the dll and config file in question (not a problem for me).