Search Results for

    Show / Hide Table of Contents

    Class ClrTypeMappingDescriptor

    Inheritance
    object
    DescriptorBase<ClrTypeMappingDescriptor, IClrTypeMapping>
    ClrTypeMappingDescriptor
    Implements
    IDescriptor
    IClrTypeMapping
    Inherited Members
    DescriptorBase<ClrTypeMappingDescriptor, IClrTypeMapping>.Self
    DescriptorBase<ClrTypeMappingDescriptor, IClrTypeMapping>.Assign<TValue>(TValue, Action<IClrTypeMapping, TValue>)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: OpenSearch.Client
    Assembly: OpenSearch.Client.dll
    Syntax
    public class ClrTypeMappingDescriptor : DescriptorBase<ClrTypeMappingDescriptor, IClrTypeMapping>, IDescriptor, IClrTypeMapping

    Constructors

    | Edit this page View Source

    ClrTypeMappingDescriptor(Type)

    Instantiates a new instance of ClrTypeMappingDescriptor

    Declaration
    public ClrTypeMappingDescriptor(Type type)
    Parameters
    Type Name Description
    Type type

    The CLR type to map

    Methods

    | Edit this page View Source

    DisableIdInference(bool)

    Disables Id inference for the given ClrType. By default, the _id value for a document is inferred from a property named Id, or from the property named by IdPropertyName, if set.

    Declaration
    public ClrTypeMappingDescriptor DisableIdInference(bool disable = true)
    Parameters
    Type Name Description
    bool disable
    Returns
    Type Description
    ClrTypeMappingDescriptor
    | Edit this page View Source

    IdProperty(string)

    The property for the given ClrType to resolve ids from.

    Declaration
    public ClrTypeMappingDescriptor IdProperty(string idProperty)
    Parameters
    Type Name Description
    string idProperty
    Returns
    Type Description
    ClrTypeMappingDescriptor
    | Edit this page View Source

    IndexName(string)

    The default OpenSearch index name for the given ClrType

    Declaration
    public ClrTypeMappingDescriptor IndexName(string indexName)
    Parameters
    Type Name Description
    string indexName
    Returns
    Type Description
    ClrTypeMappingDescriptor
    | Edit this page View Source

    RelationName(string)

    The relation name for the given ClrType to resolve to.

    Declaration
    public ClrTypeMappingDescriptor RelationName(string relationName)
    Parameters
    Type Name Description
    string relationName
    Returns
    Type Description
    ClrTypeMappingDescriptor

    Implements

    IDescriptor
    IClrTypeMapping

    Extension Methods

    SuffixExtensions.Suffix(object, string)
    • Edit this page
    • View Source
    In this article
    • Constructors
      • ClrTypeMappingDescriptor(Type)
    • Methods
      • DisableIdInference(bool)
      • IdProperty(string)
      • IndexName(string)
      • RelationName(string)
    • Implements
    • Extension Methods
    Back to top Generated by DocFX