2 // System.Data.ProviderBase.DbConnectionBase
5 // Tim Coleman (tim@timcoleman.com)
7 // Copyright (C) Tim Coleman, 2003
12 using System.Data.Common;
13 using System.EnterpriseServices;
15 namespace System.Data.ProviderBase {
16 public abstract class DbConnectionBase : DbConnection
20 DbConnectionFactory connectionFactory;
21 DbConnectionString connectionOptions;
22 string connectionString;
28 protected DbConnectionBase (DbConnectionBase connection)
29 : this (connection.ConnectionFactory)
33 protected DbConnectionBase (DbConnectionFactory connectionFactory)
35 this.connectionFactory = connectionFactory;
38 #endregion // Constructors
43 protected int CloseCount {
44 get { throw new NotImplementedException (); }
47 protected internal DbConnectionFactory ConnectionFactory {
48 get { return connectionFactory; }
51 protected internal DbConnectionString ConnectionOptions {
52 get { return connectionOptions; }
56 public override string ConnectionString {
57 get { return connectionString; }
59 connectionOptions = ConnectionFactory.CreateConnectionOptionsInternal (value);
60 connectionString = value;
65 public override int ConnectionTimeout {
66 get { throw new NotImplementedException (); }
70 protected virtual int ConnectionTimeoutInternal {
71 get { throw new NotImplementedException (); }
75 public override string Database {
76 get { throw new NotImplementedException (); }
80 public override string DataSource {
81 get { throw new NotImplementedException (); }
85 protected internal DbConnectionInternal InnerConnection {
86 get { throw new NotImplementedException (); }
90 public override string ServerVersion {
91 get { throw new NotImplementedException (); }
95 public override ConnectionState State {
96 get { throw new NotImplementedException (); }
99 #endregion // Properties
103 public event StateChangeEventHandler StateChange;
110 protected override DbTransaction BeginDbTransaction (IsolationLevel isolationLevel)
112 throw new NotImplementedException ();
116 public override void ChangeDatabase (string value)
118 throw new NotImplementedException ();
122 public override void Close ()
124 throw new NotImplementedException ();
127 protected override DbCommand CreateDbCommand ()
129 return (DbCommand) ConnectionFactory.ProviderFactory.CreateCommand ();
133 protected override void Dispose (bool disposing)
135 throw new NotImplementedException ();
139 public override void EnlistDistributedTransaction (ITransaction transaction)
141 throw new NotImplementedException ();
145 protected virtual DbMetaDataFactory GetMetaDataFactory (DbConnectionInternal internalConnection)
147 throw new NotImplementedException ();
151 protected void OnStateChange (ConnectionState originalState, ConnectionState currentState)
153 throw new NotImplementedException ();
157 public override void Open ()
159 throw new NotImplementedException ();
162 #endregion // Methods