Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add view support to the relational model API #19971

Merged
merged 1 commit into from
Feb 20, 2020
Merged

Conversation

AndriySvyryd
Copy link
Member

Use the new model in the query pipeline

Fixes #12846

new IViewColumn FindColumn([NotNull] string name);

/// <summary>
/// The view definition or <c>null</c> if this view is not managed by migrations.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting if you specify a view definition we will create it for you in migrations hence managed by migrations. :trollface:

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that's the design...

Copy link
Member

@smitpatel smitpatel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@AndriySvyryd
Copy link
Member Author

AndriySvyryd commented Feb 20, 2020

@smitpatel @ajcvickers @bricelam I've reverted the breaking change to SnapshotModelProcessor

Use the new model in the query pipeline

Fixes #12846
@@ -411,7 +427,17 @@ public static RelationalTypeMapping GetRelationalTypeMapping([NotNull] this IPro
/// <param name="property"> The property. </param>
/// <returns> The type mapping, or null if none was found. </returns>
[DebuggerStepThrough]
[Obsolete("Use FindRelationalTypeMapping")]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why obsolete?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create a consistent relational model API
3 participants