Table of Contents

Class DataFactoryOptions

Namespace
ToSic.Eav.Data.Build
Assembly
ToSic.Eav.Core.dll

Options how Entities should be generated from the initial data.

[PublicApi]
public record DataFactoryOptions : IEquatable<DataFactoryOptions>
Inheritance
object
DataFactoryOptions
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

bool

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

int

AutoId

Determines if Zero IDs are auto-incremented. Default is true.

public bool AutoId { get; init; }

Property Value

bool

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

int

TitleField

The field in the data which is the default title. Defaults to Title if not set.

public string TitleField { get; init; }

Property Value

string

Type

public Type Type { get; init; }

Property Value

Type

TypeName

The type name to use for a generated Entity.

public string TypeName { get; init; }

Property Value

string

WithMetadata

public bool WithMetadata { get; init; }

Property Value

bool