Having trouble using a DbContext connection defined in a DLL
I have a working DbContext-derived class defined in a DLL, and I want to reference that in LINQPad. So I added a connection and chose Entity Framework (DbContext). I then selected the path to my DLL and LINQPad automatically discovered my class - IntegratorContext.
I selected the option "Via a constructor that accepts a string", and I typed the exact parameter that is passed into IntegratorContext's constructor in my code, which is:
Data Source=.\SQLExpress;Initial Catalog=Integrator;Integrated Security=True;Persist Security Info=False;User ID=SA;Password=;MultipleActiveResultSets=True;Packet Size=4096;Application Name=Integrator
When I click the "Test" button in LINQPad, I get the following error:
Error: The ConnectionString property has not been initialized.
I'm not sure what to do at this point. My application runs, and that's the constructor I'm using. What do I need to do in order to access this DbContext via LINQPad?
I selected the option "Via a constructor that accepts a string", and I typed the exact parameter that is passed into IntegratorContext's constructor in my code, which is:
Data Source=.\SQLExpress;Initial Catalog=Integrator;Integrated Security=True;Persist Security Info=False;User ID=SA;Password=;MultipleActiveResultSets=True;Packet Size=4096;Application Name=Integrator
When I click the "Test" button in LINQPad, I get the following error:
Error: The ConnectionString property has not been initialized.
I'm not sure what to do at this point. My application runs, and that's the constructor I'm using. What do I need to do in order to access this DbContext via LINQPad?