C# Класс DataMigration.SqlQueryDrivenExistence

SqlQueryDrivenExistence - this class can produce an IExistence implementation, given a query to Sql Server.
Наследование: AbstractBaseExistence
Показать файл Открыть проект

Открытые методы

Метод Описание
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