C# Class Marten.Generation.TableDefinition

Datei anzeigen Open project: JasperFx/marten Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
BuildTemplate ( string template ) : string
Column ( string name ) : TableColumn
Equals ( object obj ) : bool
GetHashCode ( ) : int
HasColumn ( string name ) : bool
RemoveColumn ( string columnName ) : void
ReplaceOrAddColumn ( string name, string type, string directive = null ) : void
TableDefinition ( TableName table, TableColumn primaryKey ) : System
TableDefinition ( TableName table, string pkName, IEnumerable columns ) : System
ToDDL ( DdlRules rules ) : string
Write ( DdlRules rules, StringWriter writer ) : void
WriteTemplate ( DdlTemplate template, StringWriter writer ) : void

Protected Methods

Method Description
Equals ( TableDefinition other ) : bool

Method Details

BuildTemplate() public method

public BuildTemplate ( string template ) : string
template string
return string

Column() public method

public Column ( string name ) : TableColumn
name string
return TableColumn

Equals() protected method

protected Equals ( TableDefinition other ) : bool
other TableDefinition
return bool

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

HasColumn() public method

public HasColumn ( string name ) : bool
name string
return bool

RemoveColumn() public method

public RemoveColumn ( string columnName ) : void
columnName string
return void

ReplaceOrAddColumn() public method

public ReplaceOrAddColumn ( string name, string type, string directive = null ) : void
name string
type string
directive string
return void

TableDefinition() public method

public TableDefinition ( TableName table, TableColumn primaryKey ) : System
table TableName
primaryKey TableColumn
return System

TableDefinition() public method

public TableDefinition ( TableName table, string pkName, IEnumerable columns ) : System
table TableName
pkName string
columns IEnumerable
return System

ToDDL() public method

public ToDDL ( DdlRules rules ) : string
rules DdlRules
return string

Write() public method

public Write ( DdlRules rules, StringWriter writer ) : void
rules DdlRules
writer System.IO.StringWriter
return void

WriteTemplate() public method

public WriteTemplate ( DdlTemplate template, StringWriter writer ) : void
template DdlTemplate
writer System.IO.StringWriter
return void