c# - asp.net Web Api and multiple database -


i'm trying create api asp net uses multiple db. basically, example, have action employees (ex. api/employee) , i'd have "api/first_city/employee" takes data db associate first_city , "api/second_city/employee" takes data second db. best architecture? can't find can me. suggestion? possible asp net web api? thanks

you need create sevral entityframework models site open project>>add new item >>data>>ado.net entity data model. so, each model represent different database, can start coding using these models.

enter image description here


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -