/// <summary>
 /// Build a DB2 iSeries data provider. The name will be infered from options and will be one of the constants in the DB2iSeriesProviderName class
 /// </summary>
 /// <param name="providerType">Undelying Ado.Net provider type</param>
 /// <param name="version">iSeries version</param>
 /// <param name="mappingOptions">Mapping specific options</param>
 public DB2iSeriesDataProvider(
     DB2iSeriesProviderType providerType     = DB2iSeriesProviderOptions.Defaults.ProviderType,
     DB2iSeriesVersion version               = DB2iSeriesProviderOptions.Defaults.Version,
     DB2iSeriesMappingOptions mappingOptions = null)
     : this(DB2iSeriesProviderName.GetProviderName(version, providerType, mappingOptions ?? DB2iSeriesMappingOptions.Default))
 {
 }
Esempio n. 2
0
 public static DB2iSeriesDataProvider GetDataProvider(
     DB2iSeriesVersion version,
     DB2iSeriesProviderType providerType,
     DB2iSeriesMappingOptions mappingOptions)
 {
     return(GetDataProvider(DB2iSeriesProviderName.GetProviderName(version, providerType, mappingOptions)));
 }