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
Post a Comment