Skip to content

Conversation

Mpdreamz
Copy link
Member

@Mpdreamz Mpdreamz commented Dec 8, 2017

… overload that takes a list of mappings to ease more dynamic configuration of types at run time

fixes: #2926

Copy link
Contributor

@russcam russcam left a comment

Choose a reason for hiding this comment

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

LGTM generally. I had a question around with the non-generic type mapping should also expose a properties collection.

/// <summary>
/// When specified allows you to ignore or rename certain properties of clr type <typeparamref name="T" />
/// </summary>
public IList<IPocoPropertyMapping<T>> Properties { get; set; }
Copy link
Contributor

Choose a reason for hiding this comment

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

Should the non-generic PocoMapping also expose a Properties collection, since ultimately the properties are added to a FluentDictionary<MemberInfo, IPropertyMapping>?


namespace Nest
{
public interface IPocoMapping
Copy link
Contributor

Choose a reason for hiding this comment

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

I thought ClrTypeMapping was fairly descriptive 😄

Mpdreamz and others added 2 commits December 14, 2017 11:03
… overload that takes a list of mappings to ease more dynamic configuration of types at run time
@russcam russcam force-pushed the feature/non-generic-poco-infer-mapping branch from f8990ce to ce11271 Compare December 14, 2017 00:04
@russcam russcam merged commit ce11271 into master Dec 14, 2017
@Mpdreamz Mpdreamz deleted the feature/non-generic-poco-infer-mapping branch January 30, 2018 15:13
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.

ConnectionSettings.MapDefaultTypeIndices in NEST 6.x
2 participants