C# Class LX.EasyDb.Mapping.RelationalModel

Base class of relational models.
Inheritance: IRelationalModel
Afficher le fichier Open project: longshine/EasyDb.NET

Méthodes publiques

Méthode Description
AddColumn ( Column column ) : void

Adds an associated column.

AddColumns ( IEnumerable columns ) : void

Adds associated columns.

ContainsColumn ( Column column ) : System.Boolean

Checks if a column is associated with this model.

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

Generates SQL for creating this model.

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

Generates SQL for creating this model.

Méthodes protégées

Méthode Description
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

AddColumn() public méthode

Adds an associated column.
public AddColumn ( Column column ) : void
column Column
Résultat void

AddColumns() public méthode

Adds associated columns.
public AddColumns ( IEnumerable columns ) : void
columns IEnumerable
Résultat void

ContainsColumn() public méthode

Checks if a column is associated with this model.
public ContainsColumn ( Column column ) : System.Boolean
column Column
Résultat System.Boolean

DoToSqlCreate() protected abstract méthode

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

DoToSqlDrop() protected abstract méthode

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

ToSqlCreate() public méthode

Generates SQL for creating this model.
public ToSqlCreate ( Dialect dialect, String defaultCatalog, String defaultSchema ) : String
dialect Dialect
defaultCatalog String the default catalog name
defaultSchema String the default schema name
Résultat String

ToSqlDrop() public méthode

Generates SQL for creating this model.
public ToSqlDrop ( Dialect dialect, String defaultCatalog, String defaultSchema ) : String
dialect Dialect
defaultCatalog String the default catalog name
defaultSchema String the default schema name
Résultat String