C# Класс Acme.Northwind.Install.SqlServers

Показать файл Открыть проект

Открытые методы

Метод Описание
GetEmbeddedResource ( string resourceFileName ) : string
GetEmbeddedScripts ( string resourceFileName, IEnumerable skipSections ) : List
HasLength ( System dataType ) : bool
ReadSQLFileSectionsFromResource ( string resourceFileName, IEnumerable skipSections ) : string[]
RunEmbeddedFile ( SqlConnection connection, SqlTransaction transaction, string resourceFileName, string>.List failedScripts, List successOrderScripts, IEnumerable skipSections, List _databaseItems, List _currentItems ) : void
RunEmbeddedFile ( SqlConnection connection, SqlTransaction transaction, string resourceFileName, string>.List failedScripts, List _databaseItems, List _currentItems ) : void
RunEmbeddedFile ( SqlConnection connection, SqlTransaction transaction, string resourceFileName, List _databaseItems, List _currentItems ) : void

Приватные методы

Метод Описание
BuildConnectionString ( bool integratedSecurity, string databaseName, string serverName, string userName, string password ) : string
CanUseExtendedProperty ( string connectionString ) : bool

Determines if we can use extended properties, Azure does NOT allow them

CreateDatabase ( InstallSetup setup ) : void
DeleteExtendedProperty ( string connectionString, string propertyName ) : void
ExecuteSQL ( SqlConnection connection, SqlTransaction transaction, string sql ) : void
ExecuteSQL ( SqlConnection connection, SqlTransaction transaction, string sql, string>.List failedScripts ) : void
ExecuteSQL ( SqlConnection connection, SqlTransaction transaction, string sql, string>.List failedScripts, List successOrderScripts ) : void
ExtendedPropertyExists ( string connectionString, string property, string user, string table, string column ) : bool
GetDatabaseMetaProperty ( string connectionString, string propertyName ) : string
GetDatabaseNames ( string connectString ) : string[]
GetHistory ( string connectionString ) : List
GetSQLDropScript ( string sql ) : string

Try to strip a name of a database object from a create script

GetServers ( ) : string[]
GetSkipSectionName ( string text ) : string
GetSqlColumnsForTable ( string tableName ) : string
GetSqlForForeignKeys ( string parentTable, string childTable, string constraintName ) : string
GetSqlForRelationships ( string tableName ) : string
GetSqlForTableExtendedPropertyLikeCount ( string tableName, string likeString ) : string
GetTableColumns ( string connectString, string tableName ) : DataSet
GetTableNamesAsArrayList ( string connectString ) : ArrayList
GetTables ( string connectString ) : string[]
HasCreatePermissions ( string connectString ) : bool
InsertExtendedPropery ( string connectionString, string property, string propertyValue, string user, string table, string column ) : void
RemoveTable ( string connectString, string tableName ) : void
SQLAllocHandle ( short hType, IntPtr inputHandle, IntPtr &outputHandle ) : short
SQLBrowseConnect ( IntPtr hconn, StringBuilder inString, short inStringLength, StringBuilder outString, short outStringLength, short &outLengthNeeded ) : short
SQLFreeHandle ( short hType, IntPtr handle ) : short
SQLSetEnvAttr ( IntPtr henv, int attribute, IntPtr valuePtr, int strLength ) : short
SQLStripObjectName ( string sql, string objectHeader ) : string
SelectExtendedProperty ( string connectionString, string property, string user, string table, string column ) : string
SqlRemoveTable ( string tableName ) : string
SqlServers ( ) : System
TestConnectionString ( string connectString ) : bool
UpdateDatabaseMetaProperty ( string connectionString, string propertyName, string propertyValue ) : void
UpdateExtendedProperty ( string connectionString, string property, string propertyValue, string user, string table, string column ) : void

Описание методов

GetEmbeddedResource() публичный статический Метод

public static GetEmbeddedResource ( string resourceFileName ) : string
resourceFileName string
Результат string

GetEmbeddedScripts() публичный статический Метод

public static GetEmbeddedScripts ( string resourceFileName, IEnumerable skipSections ) : List
resourceFileName string
skipSections IEnumerable
Результат List

HasLength() публичный статический Метод

public static HasLength ( System dataType ) : bool
dataType System
Результат bool

ReadSQLFileSectionsFromResource() публичный статический Метод

public static ReadSQLFileSectionsFromResource ( string resourceFileName, IEnumerable skipSections ) : string[]
resourceFileName string
skipSections IEnumerable
Результат string[]

RunEmbeddedFile() публичный статический Метод

public static RunEmbeddedFile ( SqlConnection connection, SqlTransaction transaction, string resourceFileName, string>.List failedScripts, List successOrderScripts, IEnumerable skipSections, List _databaseItems, List _currentItems ) : void
connection System.Data.SqlClient.SqlConnection
transaction System.Data.SqlClient.SqlTransaction
resourceFileName string
failedScripts string>.List
successOrderScripts List
skipSections IEnumerable
_databaseItems List
_currentItems List
Результат void

RunEmbeddedFile() публичный статический Метод

public static RunEmbeddedFile ( SqlConnection connection, SqlTransaction transaction, string resourceFileName, string>.List failedScripts, List _databaseItems, List _currentItems ) : void
connection System.Data.SqlClient.SqlConnection
transaction System.Data.SqlClient.SqlTransaction
resourceFileName string
failedScripts string>.List
_databaseItems List
_currentItems List
Результат void

RunEmbeddedFile() публичный статический Метод

public static RunEmbeddedFile ( SqlConnection connection, SqlTransaction transaction, string resourceFileName, List _databaseItems, List _currentItems ) : void
connection System.Data.SqlClient.SqlConnection
transaction System.Data.SqlClient.SqlTransaction
resourceFileName string
_databaseItems List
_currentItems List
Результат void