Craig's Utility Library
4.0 Beta
|
Interface for table like structures More...
Public Member Functions | |
IColumn | AddColumn< T > (string ColumnName, DbType ColumnType, int Length=0, bool Nullable=true, bool Identity=false, bool Index=false, bool PrimaryKey=false, bool Unique=false, string ForeignKeyTable="", string ForeignKeyColumn="", T DefaultValue=default(T), bool OnDeleteCascade=false, bool OnUpdateCascade=false, bool OnDeleteSetNull=false) |
Adds a column More... | |
void | AddForeignKey (string ColumnName, string ForeignKeyTable, string ForeignKeyColumn) |
Adds a foreign key More... | |
ITrigger | AddTrigger (string Name, string Definition, TriggerType Type) |
Adds a trigger to the table More... | |
bool | ContainsColumn (string ColumnName) |
Determines if a column exists in the table More... | |
void | SetupForeignKeys () |
Sets up foreign keys More... | |
Properties | |
ICollection< IColumn > | Columns [get] |
Columns More... | |
string | Name [get, set] |
Name More... | |
ISource | Source [get] |
Parent of the table structure More... | |
ICollection< ITrigger > | Triggers [get] |
Triggers associated with the table (if source supports them) More... | |
IColumn | this[string Name] [get] |
Returns the specified column More... | |
IColumn Utilities.ORM.Manager.Schema.Interfaces.ITable.AddColumn< T > | ( | string | ColumnName, |
DbType | ColumnType, | ||
int | Length = 0 , |
||
bool | Nullable = true , |
||
bool | Identity = false , |
||
bool | Index = false , |
||
bool | PrimaryKey = false , |
||
bool | Unique = false , |
||
string | ForeignKeyTable = "" , |
||
string | ForeignKeyColumn = "" , |
||
T | DefaultValue = default(T) , |
||
bool | OnDeleteCascade = false , |
||
bool | OnUpdateCascade = false , |
||
bool | OnDeleteSetNull = false |
||
) |
Adds a column
ColumnName | Column Name |
ColumnType | Data type |
Length | Data length |
Nullable | Nullable? |
Identity | Identity? |
Index | Index? |
PrimaryKey | Primary key? |
Unique | Unique? |
ForeignKeyTable | Foreign key table |
ForeignKeyColumn | Foreign key column |
DefaultValue | Default value |
OnDeleteCascade | On Delete Cascade |
OnUpdateCascade | On Update Cascade |
OnDeleteSetNull | On Delete Set Null |
T | Column type |
Implemented in Utilities.ORM.Manager.Schema.BaseClasses.TableBase, Utilities.ORM.Manager.Schema.Default.Database.StoredProcedure, Utilities.ORM.Manager.Schema.Default.Database.View, and Utilities.ORM.Manager.Schema.Default.Database.Table.
void Utilities.ORM.Manager.Schema.Interfaces.ITable.AddForeignKey | ( | string | ColumnName, |
string | ForeignKeyTable, | ||
string | ForeignKeyColumn | ||
) |
Adds a foreign key
ColumnName | Column name |
ForeignKeyTable | Foreign key table |
ForeignKeyColumn | Foreign key column |
Implemented in Utilities.ORM.Manager.Schema.BaseClasses.TableBase, Utilities.ORM.Manager.Schema.Default.Database.StoredProcedure, Utilities.ORM.Manager.Schema.Default.Database.View, and Utilities.ORM.Manager.Schema.Default.Database.Table.
ITrigger Utilities.ORM.Manager.Schema.Interfaces.ITable.AddTrigger | ( | string | Name, |
string | Definition, | ||
TriggerType | Type | ||
) |
Adds a trigger to the table
Name | Name of the trigger |
Definition | Trigger definition |
Type | Trigger type |
Implemented in Utilities.ORM.Manager.Schema.Default.Database.StoredProcedure, Utilities.ORM.Manager.Schema.Default.Database.View, and Utilities.ORM.Manager.Schema.Default.Database.Table.
bool Utilities.ORM.Manager.Schema.Interfaces.ITable.ContainsColumn | ( | string | ColumnName | ) |
Determines if a column exists in the table
ColumnName | Column name |
Implemented in Utilities.ORM.Manager.Schema.BaseClasses.TableBase.
void Utilities.ORM.Manager.Schema.Interfaces.ITable.SetupForeignKeys | ( | ) |
Sets up foreign keys
Implemented in Utilities.ORM.Manager.Schema.BaseClasses.TableBase.
|
get |
|
getset |
|
get |
|
get |