2 // System.Data.ProviderBase.DbConnectionFactory
5 // Tim Coleman (tim@timcoleman.com)
7 // Copyright (C) Tim Coleman, 2003
12 using System.Data.Common;
14 namespace System.Data.ProviderBase {
15 public abstract class DbConnectionFactory
24 protected DbConnectionFactory ()
29 protected DbConnectionFactory (DbConnectionPoolCounters performanceCounters)
33 #endregion // Constructors
37 public abstract DbProviderFactory ProviderFactory { get; }
39 #endregion // Properties
44 protected virtual IAsyncResult BeginCreateConnection (DbConnectionBase owningObject, DbConnectionString connectionOptions, DbConnectionInternal connection, AsyncCallback callback, object asyncStateObject)
46 throw new NotImplementedException ();
50 public void ClearAllPools ()
52 throw new NotImplementedException ();
56 public void ClearPool (DbConnectionBase connection)
58 throw new NotImplementedException ();
61 protected abstract DbConnectionInternal CreateConnection (DbConnectionString options, DbConnectionBase owningObject);
62 protected abstract DbConnectionString CreateConnectionOptions (string connectionString);
63 protected abstract DbConnectionPoolOptions CreateConnectionPoolOptions (DbConnectionString options);
66 protected virtual DbMetaDataFactory CreateMetaDataFactory (DbConnectionInternal internalConnection)
68 throw new NotImplementedException ();
72 protected virtual DbConnectionInternal EndCreateConnection (IAsyncResult asyncResult)
74 throw new NotImplementedException ();
78 protected internal DbMetaDataFactory GetMetaDataFactory (DbConnectionString connectionOptions, DbConnectionInternal internalConnection)
80 throw new NotImplementedException ();
83 internal DbConnectionString CreateConnectionOptionsInternal (string connectionString)
85 return CreateConnectionOptions (connectionString);
89 public void SetConnectionPoolOptions (string connectionString, DbConnectionPoolOptions poolOptions)
91 throw new NotImplementedException ();