Class FieldBuilder
Builds field definitions for a search index by reflecting over a user-defined model type.
Inheritance
System.Object
FieldBuilder
Namespace: System.Dynamic.ExpandoObject
Assembly: Azure.Search.Documents.dll
Syntax
public class FieldBuilder
Constructors
FieldBuilder()
Properties
Serializer
Gets or sets the Azure.Core.Serialization.ObjectSerializer to use to generate field names that match JSON property names. You should use the same value as Serializer. Azure.Core.Serialization.JsonObjectSerializer will be used if no value is provided.
Declaration
public Azure.Core.Serialization.ObjectSerializer Serializer { get; set; }
Property Value
Azure.Core.Serialization.ObjectSerializer
|
Methods
Build(Type)
Creates a list of SearchField objects corresponding to the properties of the type supplied.
Declaration
public System.Collections.Generic.IList<Azure.Search.Documents.Indexes.Models.SearchField> Build (Type modelType);
Parameters
System.Type
modelType
The type for which fields will be created, based on its properties. |
Returns
System.Collections.Generic.IList<SearchField>
A collection of fields. |
Exceptions
System.ArgumentNullException
|