Class DataFactoryOptions
Options how Entities should be generated from the initial data.
[PublicApi]
public record DataFactoryOptions : IEquatable<DataFactoryOptions>
- Inheritance
-
objectDataFactoryOptions
- Implements
Remarks
- Added in v15.x but made public in v16.00
- Changed to be a record in v19.01 to make things simpler; this could be a breaking change, because the old constructor was removed.
Constructors
DataFactoryOptions()
Options how Entities should be generated from the initial data.
public DataFactoryOptions()
Remarks
- Added in v15.x but made public in v16.00
- Changed to be a record in v19.01 to make things simpler; this could be a breaking change, because the old constructor was removed.
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; init; }
Property Value
AutoId
Determines if Zero IDs are auto-incremented. Default is true
.
public bool AutoId { get; init; }
Property Value
IdSeed
ID seed for all items which must be auto-numbered. Default is 1
.
If the seed is -1
or less, then it will automatically decrement the count.
This is to clearly indicate virtual IDs which will not be the same in the next run.
public int IdSeed { get; init; }
Property Value
TitleField
The field in the data which is the default title.
Defaults to Title
if not set.
public string TitleField { get; init; }
Property Value
Type
public Type Type { get; init; }
Property Value
TypeName
The type name to use for a generated Entity.
public string TypeName { get; init; }
Property Value
WithMetadata
public bool WithMetadata { get; init; }