/// <summary> /// CTor /// </summary> /// <param name="comPlusContextHost">the COM+ context host for this adapter instance.</param> /// <param name="connectionString">The connection string to use when connecting to the database.</param> /// <remarks>do not call this from your code</remarks> public DataAccessAdapter(IComPlusAdapterContext comPlusContextHost, string connectionString) : base(comPlusContextHost, PersistenceInfoProviderSingleton.GetInstance()) { InitClass(connectionString, false, CatalogNameUsage.Default, String.Empty, null, null); }
/// <summary> /// CTor. SqlServer specific /// </summary> /// <param name="connectionString">The connection string to use when connecting to the database.</param> /// <param name="keepConnectionOpen">when true, the DataAccessAdapter will not close an opened connection. Use this for multi action usage.</param> /// <param name="catalogNameUsageSetting">SqlServer specific. Configures this data access adapter object how to threat catalog names in /// persistence information.</param> /// <param name="catalogNameToUse">SqlServer specific. The name to use if catalogNameUsageSetting is set to ForceName. Ignored otherwise.</param> /// <remarks>For backwards compatibility.</remarks> public DataAccessAdapter(string connectionString, bool keepConnectionOpen, CatalogNameUsage catalogNameUsageSetting, string catalogNameToUse) : base(PersistenceInfoProviderSingleton.GetInstance()) { InitClass(connectionString, keepConnectionOpen, catalogNameUsageSetting, catalogNameToUse, null, null); }
/// <summary> /// CTor. SqlServer specific /// </summary> /// <param name="connectionString">The connection string to use when connecting to the database.</param> /// <param name="keepConnectionOpen">when true, the DataAccessAdapter will not close an opened connection. Use this for multi action usage.</param> /// <param name="catalogNameOverwrites">SqlServer specific. The from-to name value pairs and setting for the overwriting of catalog names. /// Can be null.</param> /// <param name="schemaNameOverwrites">SqlServer specific. The from-to name value pairs and setting for the overwriting of schema names. /// Can be null.</param> public DataAccessAdapter(string connectionString, bool keepConnectionOpen, CatalogNameOverwriteHashtable catalogNameOverwrites, SchemaNameOverwriteHashtable schemaNameOverwrites) : base(PersistenceInfoProviderSingleton.GetInstance()) { InitClass(connectionString, keepConnectionOpen, CatalogNameUsage.Default, String.Empty, catalogNameOverwrites, schemaNameOverwrites); }
/// <summary> /// CTor /// </summary> /// <param name="connectionString">The connection string to use when connecting to the database.</param> /// <param name="keepConnectionOpen">when true, the DataAccessAdapter will not close an opened connection. Use this for multi action usage.</param> public DataAccessAdapter(string connectionString, bool keepConnectionOpen) : base(PersistenceInfoProviderSingleton.GetInstance()) { InitClass(connectionString, keepConnectionOpen, CatalogNameUsage.Default, String.Empty, null, null); }