C# 클래스 Acme.Northwind.Install.SqlServers

파일 보기 프로젝트 열기: nHydrate/nHydrate

공개 메소드들

메소드 설명
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