Skip to content

Metadata: Add Fluent API to configure Indexed properties - #19472

Merged
smitpatel merged 1 commit into
masterfrom
smit/indexerfluentAPI
Jan 4, 2020
Merged

smitpatel merged 1 commit into
masterfrom
smit/indexerfluentAPI

Conversation

@smitpatel

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
Contributor 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?

@AndriySvyryd AndriySvyryd Jan 4, 2020 •

Copy link
Copy Markdown
Member

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
Copy Markdown
Contributor 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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor 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 force-pushed the smit/indexerfluentAPI branch from 0f08b9f to 0cfb744 Compare January 4, 2020 01:45
@smitpatel
smitpatel force-pushed the smit/indexerfluentAPI branch from 0cfb744 to ce7bd5c Compare January 4, 2020 02:17
@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