asp.net - C# Connecting a console app to a Library Class project containing Entity Framework database access -


i'm working on asp.net mvc 5 application. have solution 3 projects:

  • one contains asp.net mvc app
  • another class library contains entity framework data models , data context
  • and console application service needs access database well

i'm having trouble figuring out how allow console app connect class library project data. need do?

i have static class in class library project acts db helper. when make call in console project ado.net errors. i've tried add connection strings app.config , start errors how can't attach instance because there database same name.

what steps need take access data in console project class library project contains entity framework data models?


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -