C# Class BetterMembership.Extensions.DatabaseExtensions

Datei anzeigen Open project: TheCodeKing/BetterMembership.Net

Public Methods

Method Description
AddColumnToTable ( this db, string userTableName, string userEmailColumn, SqlDbType dataType, int maxEmailLength, bool allowNull, bool isUnique ) : bool
ColumnExists ( this db, string tableName, string columnName ) : bool
GetColumnsForTable ( this db, string tableName ) : IList
TableExists ( this db, string tableName ) : bool

Method Details

AddColumnToTable() public static method

public static AddColumnToTable ( this db, string userTableName, string userEmailColumn, SqlDbType dataType, int maxEmailLength, bool allowNull, bool isUnique ) : bool
db this
userTableName string
userEmailColumn string
dataType SqlDbType
maxEmailLength int
allowNull bool
isUnique bool
return bool

ColumnExists() public static method

public static ColumnExists ( this db, string tableName, string columnName ) : bool
db this
tableName string
columnName string
return bool

GetColumnsForTable() public static method

public static GetColumnsForTable ( this db, string tableName ) : IList
db this
tableName string
return IList

TableExists() public static method

public static TableExists ( this db, string tableName ) : bool
db this
tableName string
return bool