c# - Use same local database in independent projects -


i have solution several projects:

  • a class library contains database context, lets call datumclasslibrary.
  • a class library contains model entities, lets call modelsclasslibray
  • a class library contains repositories model entities of modelsclasslibray, lets call repositoriesclasslibrary.

besides have other projects, 1 mvc5 application , other webapi application.

how can use same local db file both mvc5 application , webapi application, using entity framework code first?

ef doesn't care how/where use it...
pass correct connection string in context's constructor every time use it


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -