C# Class Gribble.TableSchema

Inheritance: ITableSchema
Exibir arquivo Open project: mikeobrien/Gribble

Public Methods

Method Description
AddColumn ( string tableName, Column column ) : void
AddColumns ( string tableName ) : void
AddNonClusteredIndex ( string tableName ) : void
AddNonClusteredIndexes ( string tableName ) : void
Create ( IConnectionManager connectionManager, IProfiler profiler = null ) : ITableSchema
Create ( SqlConnection connection, System.TimeSpan commandTimeout = null, IProfiler profiler = null ) : ITableSchema
CreateTable ( string tableName ) : void
CreateTable ( string tableName, string modelTable ) : void
DeleteTable ( string tableName ) : void
GetColumns ( string tableName ) : IEnumerable
GetIndexes ( string tableName ) : IEnumerable
RemoveColumn ( string tableName, string columnName ) : void
RemoveNonClusteredIndex ( string tableName, string indexName ) : void
TableExists ( string tableName ) : bool
TableSchema ( IConnectionManager connectionManager, IProfiler profiler ) : System

Private Methods

Method Description
ColumnFactory ( IDataReader reader ) : Column

Method Details

AddColumn() public method

public AddColumn ( string tableName, Column column ) : void
tableName string
column Column
return void

AddColumns() public method

public AddColumns ( string tableName ) : void
tableName string
return void

AddNonClusteredIndex() public method

public AddNonClusteredIndex ( string tableName ) : void
tableName string
return void

AddNonClusteredIndexes() public method

public AddNonClusteredIndexes ( string tableName ) : void
tableName string
return void

Create() public static method

public static Create ( IConnectionManager connectionManager, IProfiler profiler = null ) : ITableSchema
connectionManager IConnectionManager
profiler IProfiler
return ITableSchema

Create() public static method

public static Create ( SqlConnection connection, System.TimeSpan commandTimeout = null, IProfiler profiler = null ) : ITableSchema
connection System.Data.SqlClient.SqlConnection
commandTimeout System.TimeSpan
profiler IProfiler
return ITableSchema

CreateTable() public method

public CreateTable ( string tableName ) : void
tableName string
return void

CreateTable() public method

public CreateTable ( string tableName, string modelTable ) : void
tableName string
modelTable string
return void

DeleteTable() public method

public DeleteTable ( string tableName ) : void
tableName string
return void

GetColumns() public method

public GetColumns ( string tableName ) : IEnumerable
tableName string
return IEnumerable

GetIndexes() public method

public GetIndexes ( string tableName ) : IEnumerable
tableName string
return IEnumerable

RemoveColumn() public method

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

RemoveNonClusteredIndex() public method

public RemoveNonClusteredIndex ( string tableName, string indexName ) : void
tableName string
indexName string
return void

TableExists() public method

public TableExists ( string tableName ) : bool
tableName string
return bool

TableSchema() public method

public TableSchema ( IConnectionManager connectionManager, IProfiler profiler ) : System
connectionManager IConnectionManager
profiler IProfiler
return Gribble.TransactSql.System