forked from OData/RESTier
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Thread safety and multiple namespace support.
In Domain.Core 2 places have been identified as shared states of multiple requests (hence threads), which needs thread safety. In Domain.EntityFramework there's a limitation that entity types must come from a same namespace, it seems that limitation is unnecessary, since OData EDM could gracefully handle schema elements in multiple namespaces. For entity container's namespace, in this fix the most popular one (which has most entity types) is chosen, if there's no entity type, namespace of the DbContext type is chosen, if DbContext type has no namespace, name of the DbContext type is chosen.
- Loading branch information
Showing
3 changed files
with
22 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters