Repository navigation
Imlementation for Support specifying catalog for table mapping (initial PR) - #4672
Closed
laskoviymishka wants to merge 1 commit into
Closed
laskoviymishka wants to merge 1 commit into
laskoviymishka wants to merge 1 commit into
Conversation
…(fix issue dotnet#4019) - Add database property to relational type annotations - Follow this property from explicit mapping to default query sql generator (to create proper table alias including database name) - Enhance relational model validator to including database name (this will allow have same table and schemas for different databases) - Enhance model configuration - add generator for proper toTable method if database is presented
Contributor
|
Hey, We're going to close this one out as we would need a complete implementation of catalog support in order to take it at this stage. Some of the key things missing from this so far are migrations support and a top level fluent API (currently needs to be set via lower level metadata APIs). There are also some open design issue here. Most notably, should this be a relational concept, or specific to SQL Server. Feel free to open up an issue to start hashing these design concerns out - or use the existing #4019. We are very willing to take this feature, but given that the pull request needs more than just some minor changes before we would accept it, we're going to close the PR for the moment. ~Rowan |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
(fix issue #4019)
There are still some open questions:
So we could not implement data annotation mapping to different database. There is a possible solution by introducing additional attribute for this need (like DatabaseAttribute) with single proprte Name. In this case usage could be fairly simple
Instead of:
But there is a lot more implementation needed to add such attribute. It require add Database property to every migration command and follow it from code gen to query generation.