OData / odataorg.github.io

Staging site and collaboration repository for http://www.odata.org
MIT License
63 stars 101 forks source link

Does Odata how to be use for multi-DbContext #128

Open wang1163619 opened 7 years ago

wang1163619 commented 7 years ago

there are more than 200 db (mssql), because the system is multi-tenant, one tenant with one database, so , I want to use Odata, but ,I don't know how to config ODataConventionModelBuilder and MapODataRoute, with difference connection string, finally, odata-endpoint just like this: http://localhost/db1/odata http://localhost/db2/odata http://localhost/db3/odata ... each database structure is same ,but data is difference. can tell me how to fix it? thank you !