Class MySqlCheckBuilder
Represents an SQL check constraint builder.
public sealed class MySqlCheckBuilder : SqlCheckBuilder, ISqlCheckBuilder, ISqlConstraintBuilder, ISqlObjectBuilder
- Inheritance
-
MySqlCheckBuilder
- Implements
- Inherited Members
- Extension Methods
Remarks
MySqlDialect implementation.
Properties
Database
Database that this object belongs to.
public MySqlDatabaseBuilder Database { get; }
Property Value
ReferencedColumns
Collection of columns referenced by this check constraint.
public SqlObjectBuilderArray<MySqlColumnBuilder> ReferencedColumns { get; }
Property Value
Table
Table that this constraint is attached to.
public MySqlTableBuilder Table { get; }
Property Value
Methods
SetDefaultName()
Changes the name of this object to a default name.
public MySqlCheckBuilder SetDefaultName()
Returns
- MySqlCheckBuilder
this.
Remarks
See ISqlDefaultObjectNameProvider for more information.
Exceptions
- SqlObjectBuilderException
When name cannot be changed.
SetName(string)
Changes the name of this object.
public MySqlCheckBuilder SetName(string name)
Parameters
name
stringName to set.
Returns
- MySqlCheckBuilder
this.
Exceptions
- SqlObjectBuilderException
When name cannot be changed.