c# - ASP.NET Connect to database in another project through that particular project -


i have database project (call dataaccess) in visual studio entity framework 6 , client webapi project (clientproject) needs able see , use data database in first project using the created dbcontext class first project.

1) in order able compile 2 projects had add ef nuget package second project besides adding dataaccess reference clientproject. right way it? shouldn't clientproject able compile using reference dataaccess (which has ef) contract available/allowed methods? seems little weird have ef installed on top of both projects.

2) when use controller in clientproject query resources database in dataaccess (via exposed dbcontext) 0 resources. database table not empty. haven't added configuration clientproject besides referencing dataaccess. ideea if still need something? maybe have connection string database? i'm inclined think not since i'm expecting data access made available dataaccess project.


Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -