C# 클래스 DataMigration.SqlQueryDrivenExistence

SqlQueryDrivenExistence - this class can produce an IExistence implementation, given a query to Sql Server.
상속: AbstractBaseExistence
파일 보기 프로젝트 열기: scoutmedia/DataMigration

공개 메소드들

메소드 설명
Init ( ) : void

This is essentially a two-phase ctor. The sequence of construction is, instantiate the object, then set its properties, then call Init() so it can migrate the property values to their implementation-specific roles. This implementation will query sql to get values to populate in the internal Values HashSet. In this case, Init() will get the connectionKey, and then the connectionString from the properties, and the query string, and use that to execute a query.

비공개 메소드들

메소드 설명
GetRequiredProperty ( string key ) : string

Helper function that looks in the properties set by the Plan for this IExistence. This implementation uses these properties extensively.

메소드 상세

Init() 공개 메소드

This is essentially a two-phase ctor. The sequence of construction is, instantiate the object, then set its properties, then call Init() so it can migrate the property values to their implementation-specific roles. This implementation will query sql to get values to populate in the internal Values HashSet. In this case, Init() will get the connectionKey, and then the connectionString from the properties, and the query string, and use that to execute a query.
public Init ( ) : void
리턴 void