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

Metadata: Add Fluent API to configure Indexed properties #19472

Merged
merged 1 commit into from
Jan 4, 2020

Conversation

smitpatel
Copy link
Member

Resolves #13610

modelBuilder.Entity<City>().IndexedProperty<string>("Nation");

/// Returns an object that can be used to configure a property of the entity type.
/// If no property with the given name exists, then a new property will be added.
/// </para>
/// </summary>
Copy link
Member

Choose a reason for hiding this comment

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

Add a paragraph to these docs briefly explaining indexed properties

Copy link
Member Author

Choose a reason for hiding this comment

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

Can you suggest a para?

Copy link
Member

@AndriySvyryd AndriySvyryd Jan 4, 2020

Choose a reason for hiding this comment

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

Indexed properties are stored in the entity using an indexer supplying the provided property name.

Copy link
Member Author

Choose a reason for hiding this comment

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

How to add hyper link in XML docs?

Copy link
Member

Choose a reason for hiding this comment

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

Dunno. @bricelam ?

Copy link
Contributor

Choose a reason for hiding this comment

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

...using <see href="https://docs.microsoft.com/dotnet/csharp/programming-guide/indexers/">an indexer</see> supplying...

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Adding it in my next PR.

@smitpatel smitpatel force-pushed the smit/indexerquery branch 3 times, most recently from 1287001 to e5eb3e0 Compare January 4, 2020 01:25
@smitpatel smitpatel changed the base branch from smit/indexerquery to master January 4, 2020 01:44
@smitpatel smitpatel merged commit 6594428 into master Jan 4, 2020
@smitpatel smitpatel deleted the smit/indexerfluentAPI branch January 4, 2020 03:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Indexed properties mapping support (part of property bag entities)
3 participants