Class CreateTableOfDtoBuilder
Provides a builder for creating a database table schema based on a specified DTO (Data Transfer Object) type. Typically used in migration expressions to define table structure from a DTO.
Inheritance
object
Namespace: Umbraco.Cms.Infrastructure.Migrations.Expressions.Create.Table
Assembly: Umbraco.Infrastructure.dll
Syntax
public class CreateTableOfDtoBuilder : IExecutableBuilder
Constructors
View SourceCreateTableOfDtoBuilder(IMigrationContext, params DatabaseType[])
Initializes a new instance of the CreateTableOfDtoBuilder class.
Declaration
public CreateTableOfDtoBuilder(IMigrationContext context, params DatabaseType[] supportedDatabaseTypes)
Parameters
| Type | Name | Description |
|---|---|---|
| IMigrationContext | context | The migration context to use for the table creation. |
| DatabaseType[] | supportedDatabaseTypes | A params array of NPoco.DatabaseType values specifying the database types supported by this table. |
Properties
View SourceTypeOfDto
Gets or sets the type of the Data Transfer Object (DTO) for the table being created.
Declaration
public Type? TypeOfDto { get; set; }
Property Value
| Type | Description |
|---|---|
| Type |
WithoutKeysAndIndexes
Gets or sets a value indicating whether to create the table without any keys or indexes.
Declaration
public bool WithoutKeysAndIndexes { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
View SourceDo()
Executes.
Declaration
public void Do()