Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    CreateTableOfDtoBuilder(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 Source

    TypeOfDto

    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
    View Source

    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 Source

    Do()

    Executes.

    Declaration
    public void Do()
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX