C# Class MigSharp.Providers.SqlServerProvider

Inheritance: SqlServerProviderBase
Show file Open project: dradovic/MigSharp

Public Methods

Method Description
CreateSchema ( string schemaName ) : IEnumerable
DropColumn ( TableName tableName, string columnName ) : IEnumerable
DropIndex ( TableName tableName, string indexName ) : IEnumerable
DropSchema ( string schemaName ) : IEnumerable
ExistsTable ( string databaseName, TableName tableName ) : string
GetSchemaPrefix ( TableName tableName ) : string
RenameColumn ( TableName tableName, string oldName, string newName ) : IEnumerable
RenamePrimaryKey ( TableName tableName, string oldName, string newName ) : IEnumerable
RenameTable ( TableName oldName, string newName ) : IEnumerable

Protected Methods

Method Description
DropDefaultConstraint ( TableName tableName, string columnName, bool checkIfExists ) : IEnumerable
GetTypeSpecifier ( DataType type, bool isRowVersion ) : string

Private Methods

Method Description
GetSchemaName ( TableName tableName ) : string
PrefixIfObjectExists ( string objectName, string schemaName, string commandTextToBePrefixed ) : string

Method Details

CreateSchema() public method

public CreateSchema ( string schemaName ) : IEnumerable
schemaName string
return IEnumerable

DropColumn() public method

public DropColumn ( TableName tableName, string columnName ) : IEnumerable
tableName MigSharp.Core.TableName
columnName string
return IEnumerable

DropDefaultConstraint() protected method

protected DropDefaultConstraint ( TableName tableName, string columnName, bool checkIfExists ) : IEnumerable
tableName MigSharp.Core.TableName
columnName string
checkIfExists bool
return IEnumerable

DropIndex() public method

public DropIndex ( TableName tableName, string indexName ) : IEnumerable
tableName MigSharp.Core.TableName
indexName string
return IEnumerable

DropSchema() public method

public DropSchema ( string schemaName ) : IEnumerable
schemaName string
return IEnumerable

ExistsTable() public method

public ExistsTable ( string databaseName, TableName tableName ) : string
databaseName string
tableName MigSharp.Core.TableName
return string

GetSchemaPrefix() public method

public GetSchemaPrefix ( TableName tableName ) : string
tableName MigSharp.Core.TableName
return string

GetTypeSpecifier() protected method

protected GetTypeSpecifier ( DataType type, bool isRowVersion ) : string
type DataType
isRowVersion bool
return string

RenameColumn() public method

public RenameColumn ( TableName tableName, string oldName, string newName ) : IEnumerable
tableName MigSharp.Core.TableName
oldName string
newName string
return IEnumerable

RenamePrimaryKey() public method

public RenamePrimaryKey ( TableName tableName, string oldName, string newName ) : IEnumerable
tableName MigSharp.Core.TableName
oldName string
newName string
return IEnumerable

RenameTable() public method

public RenameTable ( TableName oldName, string newName ) : IEnumerable
oldName MigSharp.Core.TableName
newName string
return IEnumerable