C# 클래스 DataMigration.SqlQueryDrivenLookup

SqlQueryDrivenLookup is a very simple class that knows how to take the text of a sql query from its descriptor in the plan, execute it, and perform key-value lookups using the values obtained via the query. It is not for use with stored procedures.
상속: AbstractBaseLookup
파일 보기 프로젝트 열기: scoutmedia/DataMigration

공개 메소드들

메소드 설명
Init ( ) : void

This is essentially a two-phase ctor. The sequence of construction is, instantiate the lookup, then set its properties, then call Init() so it can migrate the property values to their implementation-specific roles. 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 lookup. This implementation uses these properties extensively.

메소드 상세

Init() 공개 메소드

This is essentially a two-phase ctor. The sequence of construction is, instantiate the lookup, then set its properties, then call Init() so it can migrate the property values to their implementation-specific roles. 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