Table of Contents

Class MySqlTableBuilder

Namespace
LfrlAnvil.MySql.Objects.Builders
Assembly
LfrlAnvil.MySql.dll

Represents an SQL table builder.

public sealed class MySqlTableBuilder : SqlTableBuilder, ISqlTableBuilder, ISqlObjectBuilder
Inheritance
MySqlTableBuilder
Implements
Inherited Members
Extension Methods

Remarks

MySqlDialect implementation.

Properties

Columns

Collection of columns that belong to this table.

public MySqlColumnBuilderCollection Columns { get; }

Property Value

MySqlColumnBuilderCollection

Constraints

Collection of constraints that belong to this table.

public MySqlConstraintBuilderCollection Constraints { get; }

Property Value

MySqlConstraintBuilderCollection

Database

Database that this object belongs to.

public MySqlDatabaseBuilder Database { get; }

Property Value

MySqlDatabaseBuilder

Schema

Schema that this table belongs to.

public MySqlSchemaBuilder Schema { get; }

Property Value

MySqlSchemaBuilder

Methods

SetName(string)

Changes the name of this object.

public MySqlTableBuilder SetName(string name)

Parameters

name string

Name to set.

Returns

MySqlTableBuilder

this.

Exceptions

SqlObjectBuilderException

When name cannot be changed.