Class ClrTypeMappingDescriptor
Inheritance
ClrTypeMappingDescriptor
Assembly: OpenSearch.Client.dll
Syntax
public class ClrTypeMappingDescriptor : DescriptorBase<ClrTypeMappingDescriptor, IClrTypeMapping>, IDescriptor, IClrTypeMapping
Constructors
|
Edit this page
View Source
ClrTypeMappingDescriptor(Type)
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
|
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
|
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
|
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
Implements
Extension Methods