C# Class DataMigration.SqlQueryDrivenExistence

SqlQueryDrivenExistence - this class can produce an IExistence implementation, given a query to Sql Server.
Inheritance: AbstractBaseExistence
ファイルを表示 Open project: scoutmedia/DataMigration

Public Methods

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

Private Methods

Method Description
GetRequiredProperty ( string key ) : string

Helper function that looks in the properties set by the Plan for this IExistence. 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 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
return void