C# Class LX.EasyDb.Mapping.Constraint

A relational constraint.
Inheritance: RelationalModel, IRelationalModel
Show file Open project: longshine/EasyDb.NET

Public Methods

Method Description
ToString ( ) : String

Protected Methods

Method Description
DoToSqlConstraint ( Dialect dialect, String constraintName ) : String

Generates SQL for this constraint.

DoToSqlCreate ( Dialect dialect, String defaultCatalog, String defaultSchema ) : String

Generates SQL for creating this model.

DoToSqlDrop ( Dialect dialect, String defaultCatalog, String defaultSchema ) : String

Generates SQL for creating this model.

Method Details

DoToSqlConstraint() protected abstract method

Generates SQL for this constraint.
protected abstract DoToSqlConstraint ( Dialect dialect, String constraintName ) : String
dialect Dialect
constraintName String the name of this constraint
return String

DoToSqlCreate() protected method

Generates SQL for creating this model.
protected DoToSqlCreate ( Dialect dialect, String defaultCatalog, String defaultSchema ) : String
dialect Dialect
defaultCatalog String the default catalog name
defaultSchema String the default schema name
return String

DoToSqlDrop() protected method

Generates SQL for creating this model.
protected DoToSqlDrop ( Dialect dialect, String defaultCatalog, String defaultSchema ) : String
dialect Dialect
defaultCatalog String the default catalog name
defaultSchema String the default schema name
return String

ToString() public method

public ToString ( ) : String
return String