/// <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))
 {
 }
Exemple #2
0
 public static DB2iSeriesDataProvider GetDataProvider(
     DB2iSeriesVersion version,
     DB2iSeriesProviderType providerType,
     DB2iSeriesMappingOptions mappingOptions)
 {
     return(GetDataProvider(DB2iSeriesProviderName.GetProviderName(version, providerType, mappingOptions)));
 }
 /// <summary>
 /// Build a provider for a spefic configuration. Please check the names available in the DB2iSeriesProviderName class
 /// </summary>
 /// <param name="name">The name of the configuration</param>
 public DB2iSeriesDataProvider(string name)
     : this(DB2iSeriesProviderName.GetProviderOptions(name))
 {
 }
Exemple #4
0
 private static DB2iSeriesDataProvider BuildDataProvider(string providerName)
 {
     return(new DB2iSeriesDataProvider(DB2iSeriesProviderName.GetProviderOptions(providerName)));
 }