C# Class 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.
Inheritance: AbstractBaseLookup
ファイルを表示 Open project: scoutmedia/DataMigration

Public Methods

Method Description
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.

Private Methods

Method Description
GetRequiredProperty ( string key ) : string

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

Method Details

Init() public method

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
return void