DataMapper Class |
Provides mapping of data types and their values from .NET types to Azure Search types.
The implementation can map Int32, Int64, Boolean, Double, DateTime, String and IEnumerableT of String types directly to their Azure counterparts. Types Guid and Decimal are mapped as String and Double respectively.
Namespace: CMS.Search.Azure
public class DataMapper
The DataMapper type exposes the following members.
Name | Description | |
---|---|---|
ConvertValue |
Coverts value of type supported by this mapper to result of type suitable for Azure Search.
| |
MapType |
Gets Azure Search DataType suitable for given type.
| |
RegisterMapping |
Registers a new mapping of type to Azure Search DataType along with a function for conversion
of source values to target values directly assignable to Azure Search API.
|