OData / OData/odataorg.github.io

Does Odata how to be use for multi-DbContext

Open
#128 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
73
Forks
106
PR merge metrics
No merged PRs in 30d

Description

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 !

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No repository files, tests, or entry points are named. Start by determining whether the project supports OData with multiple MSSQL tenant databases and identify the configuration boundaries for ODataConventionModelBuilder and MapODataRoute; done would be a documented, working approach for tenant-specific endpoints such as /db1/odata.

Written by the indexing model from the issue text.

Assessment

Tech stack
sql
Domain
api, databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.