C# 클래스 Chronozoom.Entities.ManualMigrationCheck

상속: IDisposable
파일 보기 프로젝트 열기: JayBeavers/ChronoZoom

공개 메소드들

메소드 설명
Dispose ( ) : void
Dispose ( bool disposing ) : void
ManualMigrationCheck ( ) : System

constructor - undertakes a migration needed check

비공개 메소드들

메소드 설명
BuildAnyMissingMigrationStepsSQL ( string>.Dictionary migrated ) : string
CETableExists ( string tableName, SqlCeConnection sqlConnection ) : bool

Function to check if a table exists in a CE database.

CheckCE ( ) : void

manual migration check for SQL Server Compact Edition (CE)

CheckFull ( ) : void

manual migration check for SQL Server full editions and Azure

EnsureBitmasksPopulated ( ) : void
ExecCENativeSQL ( string sqlScript, SqlCeConnection sqlConnection ) : void

Use to run T-SQL scripts for SQL Server CE which can't be run through DbCommand since they include native, non-standard commands such as "GO". As there is no CE equivilent to ServerConnection, we will chunk the script into segments seperated by each GO and make each segment a unique DbCommand call. We will also remove the key/index ASC option, CLUSTERED option, [dbo] schema name, WITH CHECK parameter from any script since these are not supported, and convert the (MAX) option to an appropriate value and GetUTCDate to GetDate since these is not supported either. Additionally, any chunk containing a trigger will be completely ignored (the entire chunk) and not run since triggers are not supported. Thus this function is also a translator for CE scripts.

ExecFullNativeSQL ( string sqlScript, SqlConnection sqlConnection ) : void

Use to run T-SQL scripts for SQL Server or Azure which can't be run through DbCommand since they include native, non-standard commands such as "GO". This runs the scripts through a native interface instead. (Faster than splitting into separate DbCommand calls.)

메소드 상세

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 공개 메소드

public Dispose ( bool disposing ) : void
disposing bool
리턴 void

ManualMigrationCheck() 공개 메소드

constructor - undertakes a migration needed check
public ManualMigrationCheck ( ) : System
리턴 System