Class DataFactoryOptions
Options how Entities should be generated from the initial data.
[PublicApi]
public class DataFactoryOptions
- Inheritance
-
DataFactoryOptions
Remarks
Added in v15.x but made public in v16.00
Constructors
DataFactoryOptions(DataFactoryOptions, NoParamOrder, int?, string, string, bool?, int?, bool?, Type)
Main Constructor to create such options.
public DataFactoryOptions(DataFactoryOptions original = null, NoParamOrder noParamOrder = default, int? appId = null, string typeName = null, string titleField = null, bool? autoId = null, int? idSeed = null, bool? withMetadata = null, Type type = null)
Parameters
original
DataFactoryOptionsOptional initial object which would be used as a template when creating the new one.
noParamOrder
NoParamOrderappId
int?Optional AppId to set on each generated Entity
typeName
stringOptional ContentTypeName to use instead of the default
titleField
stringOptional Title field to use instead of the default
Title
autoId
bool?Determines if items with ID 0 should get an automatic ID
idSeed
int?A root ID seed for numbering the items
withMetadata
bool?type
Type
Properties
AllowUnknownValueTypes
public bool AllowUnknownValueTypes { get; init; }
Property Value
AppId
The App-ID which will be assigned to the generated entities.
By default, it will be 0
public int AppId { get; }
Property Value
AutoId
Determines if Zero IDs are auto-incremented - default is true
.
public bool AutoId { get; }
Property Value
IdSeed
public int IdSeed { get; }
Property Value
TitleField
The field in the data which is the default title.
Defaults to Title
if not set.
public string TitleField { get; }
Property Value
Type
public Type Type { get; init; }
Property Value
TypeName
The type name to use for a generated Entity.
public string TypeName { get; }
Property Value
WithMetadata
public bool WithMetadata { get; init; }