From: Kevin W. <kev...@us...> - 2004-12-31 17:26:19
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Driver In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16861 Modified Files: NHybridDataReader.cs NpgsqlDriver.cs OdbcDriver.cs OleDbDriver.cs OracleClientDriver.cs SqlClientDriver.cs Log Message: fixing xml comments and letting ReSharper do reformatting Index: OracleClientDriver.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Driver/OracleClientDriver.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** OracleClientDriver.cs 27 Dec 2004 02:26:13 -0000 1.2 --- OracleClientDriver.cs 31 Dec 2004 17:26:01 -0000 1.3 *************** *** 1,6 **** - using System; - using System.Data; - using System.Reflection; - namespace NHibernate.Driver { --- 1,2 ---- *************** *** 8,47 **** /// A NHibernate Driver for using the Oracle DataProvider. /// </summary> ! public class OracleClientDriver: DriverBase { private System.Type connectionType; private System.Type commandType; public OracleClientDriver() { ! connectionType = System.Type.GetType("System.Data.OracleClient.OracleConnection, System.Data.OracleClient, version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"); ! commandType = System.Type.GetType("System.Data.OracleClient.OracleCommand, System.Data.OracleClient, version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"); } public override System.Type CommandType { ! get { return commandType; } } public override System.Type ConnectionType { ! get { return connectionType; } } ! public override bool UseNamedPrefixInSql { ! get {return true;} } ! public override bool UseNamedPrefixInParameter { ! get {return true;} } ! public override string NamedPrefix { ! get {return ":";} } } ! } ! --- 4,48 ---- /// A NHibernate Driver for using the Oracle DataProvider. /// </summary> ! public class OracleClientDriver : DriverBase { private System.Type connectionType; private System.Type commandType; + /// <summary></summary> public OracleClientDriver() { ! connectionType = System.Type.GetType( "System.Data.OracleClient.OracleConnection, System.Data.OracleClient, version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" ); ! commandType = System.Type.GetType( "System.Data.OracleClient.OracleCommand, System.Data.OracleClient, version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" ); } + /// <summary></summary> public override System.Type CommandType { ! get { return commandType; } } + /// <summary></summary> public override System.Type ConnectionType { ! get { return connectionType; } } ! /// <summary></summary> ! public override bool UseNamedPrefixInSql { ! get { return true; } } ! /// <summary></summary> ! public override bool UseNamedPrefixInParameter { ! get { return true; } } ! /// <summary></summary> ! public override string NamedPrefix { ! get { return ":"; } } } ! } \ No newline at end of file Index: SqlClientDriver.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Driver/SqlClientDriver.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** SqlClientDriver.cs 25 Aug 2004 03:56:30 -0000 1.6 --- SqlClientDriver.cs 31 Dec 2004 17:26:01 -0000 1.7 *************** *** 1,6 **** - using System; using System.Data; ! using NHibernate.SqlCommand; namespace NHibernate.Driver --- 1,6 ---- using System.Data; ! using System.Data.SqlClient; using NHibernate.SqlCommand; + using NHibernate.SqlTypes; namespace NHibernate.Driver *************** *** 11,51 **** public class SqlClientDriver : DriverBase { public SqlClientDriver() { } ! public override System.Type CommandType { ! get { return typeof(System.Data.SqlClient.SqlCommand); } } public override System.Type ConnectionType { ! get { return typeof(System.Data.SqlClient.SqlConnection); } } public override IDbConnection CreateConnection() { ! return new System.Data.SqlClient.SqlConnection(); } ! public override IDbCommand CreateCommand() { return new System.Data.SqlClient.SqlCommand(); } ! public override bool UseNamedPrefixInSql { ! get {return true;} } ! public override bool UseNamedPrefixInParameter { ! get {return true;} } ! public override string NamedPrefix { ! get {return "@";} } --- 11,59 ---- public class SqlClientDriver : DriverBase { + /// <summary></summary> public SqlClientDriver() { } ! ! /// <summary></summary> public override System.Type CommandType { ! get { return typeof( System.Data.SqlClient.SqlCommand ); } } + /// <summary></summary> public override System.Type ConnectionType { ! get { return typeof( SqlConnection ); } } + /// <summary></summary> public override IDbConnection CreateConnection() { ! return new SqlConnection(); } ! /// <summary></summary> ! public override IDbCommand CreateCommand() { return new System.Data.SqlClient.SqlCommand(); } ! /// <summary></summary> ! public override bool UseNamedPrefixInSql { ! get { return true; } } ! /// <summary></summary> ! public override bool UseNamedPrefixInParameter { ! get { return true; } } ! /// <summary></summary> ! public override string NamedPrefix { ! get { return "@"; } } *************** *** 62,66 **** public override bool SupportsMultipleOpenReaders { ! get { return false; } } --- 70,74 ---- public override bool SupportsMultipleOpenReaders { ! get { return false; } } *************** *** 77,83 **** /// to be set. /// </remarks> ! protected override IDbDataParameter GenerateParameter(IDbCommand command, string name, Parameter parameter, Dialect.Dialect dialect) { ! IDbDataParameter dbParam = base.GenerateParameter(command, name, parameter, dialect); // take a look at the SqlType and determine if this is one that MsSql needs to set Size or --- 85,91 ---- /// to be set. /// </remarks> ! protected override IDbDataParameter GenerateParameter( IDbCommand command, string name, Parameter parameter, Dialect.Dialect dialect ) { ! IDbDataParameter dbParam = base.GenerateParameter( command, name, parameter, dialect ); // take a look at the SqlType and determine if this is one that MsSql needs to set Size or *************** *** 89,95 **** ParameterPrecisionScale pps = null; ! switch( parameter.SqlType.DbType ) { - case DbType.AnsiString: case DbType.AnsiStringFixedLength: --- 97,102 ---- ParameterPrecisionScale pps = null; ! switch( parameter.SqlType.DbType ) { case DbType.AnsiString: case DbType.AnsiStringFixedLength: *************** *** 100,108 **** case DbType.Binary: pl = parameter as ParameterLength; ! if( parameter.SqlType is SqlTypes.BinaryBlobSqlType) { dbParam.Size = dialect.MaxBinaryBlobSize; } ! else { dbParam.Size = dialect.MaxBinarySize; --- 107,115 ---- case DbType.Binary: pl = parameter as ParameterLength; ! if( parameter.SqlType is BinaryBlobSqlType ) { dbParam.Size = dialect.MaxBinaryBlobSize; } ! else { dbParam.Size = dialect.MaxBinarySize; *************** *** 113,125 **** case DbType.StringFixedLength: pl = parameter as ParameterLength; ! if( parameter.SqlType is SqlTypes.StringClobSqlType) { dbParam.Size = dialect.MaxStringClobSize; } ! else { dbParam.Size = dialect.MaxStringSize; } ! break; case DbType.Decimal: pps = parameter as ParameterPrecisionScale; --- 120,132 ---- case DbType.StringFixedLength: pl = parameter as ParameterLength; ! if( parameter.SqlType is StringClobSqlType ) { dbParam.Size = dialect.MaxStringClobSize; } ! else { dbParam.Size = dialect.MaxStringSize; } ! break; case DbType.Decimal: pps = parameter as ParameterPrecisionScale; *************** *** 132,140 **** // if one of these is not null then override the default values // set in the earlier switch statement. ! if( pl!=null ) { ! dbParam.Size = pl.Length; } ! else if( pps!=null ) { dbParam.Precision = pps.Precision; --- 139,147 ---- // if one of these is not null then override the default values // set in the earlier switch statement. ! if( pl != null ) { ! dbParam.Size = pl.Length; } ! else if( pps != null ) { dbParam.Precision = pps.Precision; *************** *** 143,150 **** return dbParam; ! } ! } ! } --- 150,157 ---- return dbParam; ! } ! } ! } \ No newline at end of file Index: OleDbDriver.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Driver/OleDbDriver.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** OleDbDriver.cs 18 May 2004 05:02:27 -0000 1.4 --- OleDbDriver.cs 31 Dec 2004 17:26:01 -0000 1.5 *************** *** 1,4 **** --- 1,5 ---- using System; using System.Data; + using System.Data.OleDb; namespace NHibernate.Driver *************** *** 12,54 **** public class OleDbDriver : DriverBase { public OleDbDriver() { } ! public override System.Type CommandType { ! get { return typeof(System.Data.OleDb.OleDbCommand); } } public override System.Type ConnectionType { ! get { return typeof(System.Data.OleDb.OleDbConnection); } } public override IDbConnection CreateConnection() { ! return new System.Data.OleDb.OleDbConnection(); } ! public override IDbCommand CreateCommand() { ! return new System.Data.OleDb.OleDbCommand(); } ! public override bool UseNamedPrefixInSql { ! get {return false;} } ! public override bool UseNamedPrefixInParameter { ! get {return false;} } ! public override string NamedPrefix { ! get {return String.Empty;} } } ! } --- 13,63 ---- public class OleDbDriver : DriverBase { + /// <summary></summary> public OleDbDriver() { } ! ! /// <summary></summary> public override System.Type CommandType { ! get { return typeof( OleDbCommand ); } } + /// <summary></summary> public override System.Type ConnectionType { ! get { return typeof( OleDbConnection ); } } + /// <summary></summary> public override IDbConnection CreateConnection() { ! return new OleDbConnection(); } ! /// <summary></summary> ! public override IDbCommand CreateCommand() { ! return new OleDbCommand(); } ! /// <summary></summary> ! public override bool UseNamedPrefixInSql { ! get { return false; } } ! /// <summary></summary> ! public override bool UseNamedPrefixInParameter { ! get { return false; } } ! /// <summary></summary> ! public override string NamedPrefix { ! get { return String.Empty; } } } ! } \ No newline at end of file Index: NHybridDataReader.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Driver/NHybridDataReader.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** NHybridDataReader.cs 14 Sep 2004 17:49:54 -0000 1.1 --- NHybridDataReader.cs 31 Dec 2004 17:26:01 -0000 1.2 *************** *** 1,4 **** --- 1,5 ---- using System; using System.Data; + using log4net; namespace NHibernate.Driver *************** *** 22,29 **** public class NHybridDataReader : IDataReader { ! log4net.ILog log = log4net.LogManager.GetLogger( typeof(NHybridDataReader) ); ! IDataReader _reader; ! bool _isMidstream = false; /// <summary> --- 23,30 ---- public class NHybridDataReader : IDataReader { ! private ILog log = LogManager.GetLogger( typeof( NHybridDataReader ) ); ! private IDataReader _reader; ! private bool _isMidstream = false; /// <summary> *************** *** 31,35 **** /// </summary> /// <param name="reader">The underlying IDataReader to use.</param> ! public NHybridDataReader(IDataReader reader) : this(reader, false) { } --- 32,36 ---- /// </summary> /// <param name="reader">The underlying IDataReader to use.</param> ! public NHybridDataReader( IDataReader reader ) : this( reader, false ) { } *************** *** 40,50 **** /// <param name="reader">The underlying IDataReader to use.</param> /// <param name="inMemory"><c>true</c> if the contents of the IDataReader should be read into memory right away.</param> ! public NHybridDataReader(IDataReader reader, bool inMemory) { ! if( inMemory ) { _reader = new NDataReader( reader, false ); } ! else { _reader = reader; --- 41,51 ---- /// <param name="reader">The underlying IDataReader to use.</param> /// <param name="inMemory"><c>true</c> if the contents of the IDataReader should be read into memory right away.</param> ! public NHybridDataReader( IDataReader reader, bool inMemory ) { ! if( inMemory ) { _reader = new NDataReader( reader, false ); } ! else { _reader = reader; *************** *** 59,69 **** /// This will result in a no op if the reader is closed or is already in memory. /// </remarks> ! public void ReadIntoMemory() { ! if( _reader.IsClosed==false && _reader.GetType()!=typeof(NDataReader) ) { ! if( log.IsDebugEnabled ) { ! log.Debug("Moving IDataReader into an NDataReader. It was converted in midstream " + _isMidstream.ToString() ); } _reader = new NDataReader( _reader, _isMidstream ); --- 60,70 ---- /// This will result in a no op if the reader is closed or is already in memory. /// </remarks> ! public void ReadIntoMemory() { ! if( _reader.IsClosed == false && _reader.GetType() != typeof( NDataReader ) ) { ! if( log.IsDebugEnabled ) { ! log.Debug( "Moving IDataReader into an NDataReader. It was converted in midstream " + _isMidstream.ToString() ); } _reader = new NDataReader( _reader, _isMidstream ); *************** *** 75,79 **** /// </summary> /// <value><c>true</c> if NextResult and Read have been called on the <see cref="IDataReader"/>.</value> ! public bool IsMidstream { get { return _isMidstream; } --- 76,80 ---- /// </summary> /// <value><c>true</c> if NextResult and Read have been called on the <see cref="IDataReader"/>.</value> ! public bool IsMidstream { get { return _isMidstream; } *************** *** 82,85 **** --- 83,87 ---- #region IDataReader Members + /// <summary></summary> public int RecordsAffected { *************** *** 87,90 **** --- 89,93 ---- } + /// <summary></summary> public bool IsClosed { *************** *** 92,95 **** --- 95,99 ---- } + /// <summary></summary> public bool NextResult() { *************** *** 99,102 **** --- 103,107 ---- } + /// <summary></summary> public void Close() { *************** *** 104,107 **** --- 109,113 ---- } + /// <summary></summary> public bool Read() { *************** *** 110,113 **** --- 116,120 ---- } + /// <summary></summary> public int Depth { *************** *** 115,118 **** --- 122,126 ---- } + /// <summary></summary> public DataTable GetSchemaTable() { *************** *** 124,127 **** --- 132,136 ---- #region IDisposable Members + /// <summary></summary> public void Dispose() { *************** *** 133,191 **** #region IDataRecord Members ! public int GetInt32(int i) { ! return _reader.GetInt32(i); } ! public object this[string name] { ! get { return _reader[name]; } } ! object System.Data.IDataRecord.this[int i] { ! get { return _reader[i]; } } ! public object GetValue(int i) { ! return _reader.GetValue(i); } ! public bool IsDBNull(int i) { ! return _reader.IsDBNull(i); } ! public long GetBytes(int i, long fieldOffset, byte[] buffer, int bufferoffset, int length) { return _reader.GetBytes( i, fieldOffset, buffer, bufferoffset, length ); } ! public byte GetByte(int i) { ! return _reader.GetByte(i); } ! public System.Type GetFieldType(int i) { ! return _reader.GetFieldType(i); } ! public decimal GetDecimal(int i) { ! return _reader.GetDecimal(i); } ! public int GetValues(object[] values) { return _reader.GetValues( values ); } ! public string GetName(int i) { ! return _reader.GetName(i); } public int FieldCount { --- 142,252 ---- #region IDataRecord Members ! /// <summary> ! /// ! /// </summary> ! /// <param name="i"></param> ! /// <returns></returns> ! public int GetInt32( int i ) { ! return _reader.GetInt32( i ); } ! /// <summary></summary> ! public object this[ string name ] { ! get { return _reader[ name ]; } } ! /// <summary></summary> ! object IDataRecord.this[ int i ] { ! get { return _reader[ i ]; } } ! /// <summary> ! /// ! /// </summary> ! /// <param name="i"></param> ! /// <returns></returns> ! public object GetValue( int i ) { ! return _reader.GetValue( i ); } ! /// <summary> ! /// ! /// </summary> ! /// <param name="i"></param> ! /// <returns></returns> ! public bool IsDBNull( int i ) { ! return _reader.IsDBNull( i ); } ! /// <summary> ! /// ! /// </summary> ! /// <param name="i"></param> ! /// <param name="fieldOffset"></param> ! /// <param name="buffer"></param> ! /// <param name="bufferoffset"></param> ! /// <param name="length"></param> ! /// <returns></returns> ! public long GetBytes( int i, long fieldOffset, byte[ ] buffer, int bufferoffset, int length ) { return _reader.GetBytes( i, fieldOffset, buffer, bufferoffset, length ); } ! /// <summary> ! /// ! /// </summary> ! /// <param name="i"></param> ! /// <returns></returns> ! public byte GetByte( int i ) { ! return _reader.GetByte( i ); } ! /// <summary> ! /// ! /// </summary> ! /// <param name="i"></param> ! /// <returns></returns> ! public System.Type GetFieldType( int i ) { ! return _reader.GetFieldType( i ); } ! /// <summary> ! /// ! /// </summary> ! /// <param name="i"></param> ! /// <returns></returns> ! public decimal GetDecimal( int i ) { ! return _reader.GetDecimal( i ); } ! /// <summary> ! /// ! /// </summary> ! /// <param name="values"></param> ! /// <returns></returns> ! public int GetValues( object[ ] values ) { return _reader.GetValues( values ); } ! /// <summary> ! /// ! /// </summary> ! /// <param name="i"></param> ! /// <returns></returns> ! public string GetName( int i ) { ! return _reader.GetName( i ); } + /// <summary></summary> public int FieldCount { *************** *** 193,262 **** } ! public long GetInt64(int i) { ! return _reader.GetInt64(i); } ! public double GetDouble(int i) { ! return _reader.GetDouble(i); } ! public bool GetBoolean(int i) { ! return _reader.GetBoolean(i); } ! public Guid GetGuid(int i) { ! return _reader.GetGuid(i); } ! public DateTime GetDateTime(int i) { ! return _reader.GetDateTime(i); } ! public int GetOrdinal(string name) { ! return _reader.GetOrdinal(name); } ! public string GetDataTypeName(int i) { ! return _reader.GetDataTypeName(i); } ! public float GetFloat(int i) { ! return _reader.GetFloat(i); } ! public IDataReader GetData(int i) { ! return _reader.GetData(i); } ! public long GetChars(int i, long fieldoffset, char[] buffer, int bufferoffset, int length) { return _reader.GetChars( i, fieldoffset, buffer, bufferoffset, length ); } ! public string GetString(int i) { ! return _reader.GetString(i); } ! public char GetChar(int i) { ! return _reader.GetChar(i); } ! public short GetInt16(int i) { ! return _reader.GetInt16(i); } #endregion } ! } --- 254,392 ---- } ! /// <summary> ! /// ! /// </summary> ! /// <param name="i"></param> ! /// <returns></returns> ! public long GetInt64( int i ) { ! return _reader.GetInt64( i ); } ! /// <summary> ! /// ! /// </summary> ! /// <param name="i"></param> ! /// <returns></returns> ! public double GetDouble( int i ) { ! return _reader.GetDouble( i ); } ! /// <summary> ! /// ! /// </summary> ! /// <param name="i"></param> ! /// <returns></returns> ! public bool GetBoolean( int i ) { ! return _reader.GetBoolean( i ); } ! /// <summary> ! /// ! /// </summary> ! /// <param name="i"></param> ! /// <returns></returns> ! public Guid GetGuid( int i ) { ! return _reader.GetGuid( i ); } ! /// <summary> ! /// ! /// </summary> ! /// <param name="i"></param> ! /// <returns></returns> ! public DateTime GetDateTime( int i ) { ! return _reader.GetDateTime( i ); } ! /// <summary> ! /// ! /// </summary> ! /// <param name="name"></param> ! /// <returns></returns> ! public int GetOrdinal( string name ) { ! return _reader.GetOrdinal( name ); } ! /// <summary> ! /// ! /// </summary> ! /// <param name="i"></param> ! /// <returns></returns> ! public string GetDataTypeName( int i ) { ! return _reader.GetDataTypeName( i ); } ! /// <summary> ! /// ! /// </summary> ! /// <param name="i"></param> ! /// <returns></returns> ! public float GetFloat( int i ) { ! return _reader.GetFloat( i ); } ! /// <summary> ! /// ! /// </summary> ! /// <param name="i"></param> ! /// <returns></returns> ! public IDataReader GetData( int i ) { ! return _reader.GetData( i ); } ! /// <summary> ! /// ! /// </summary> ! /// <param name="i"></param> ! /// <param name="fieldoffset"></param> ! /// <param name="buffer"></param> ! /// <param name="bufferoffset"></param> ! /// <param name="length"></param> ! /// <returns></returns> ! public long GetChars( int i, long fieldoffset, char[ ] buffer, int bufferoffset, int length ) { return _reader.GetChars( i, fieldoffset, buffer, bufferoffset, length ); } ! /// <summary> ! /// ! /// </summary> ! /// <param name="i"></param> ! /// <returns></returns> ! public string GetString( int i ) { ! return _reader.GetString( i ); } ! /// <summary> ! /// ! /// </summary> ! /// <param name="i"></param> ! /// <returns></returns> ! public char GetChar( int i ) { ! return _reader.GetChar( i ); } ! /// <summary> ! /// ! /// </summary> ! /// <param name="i"></param> ! /// <returns></returns> ! public short GetInt16( int i ) { ! return _reader.GetInt16( i ); } #endregion } ! } \ No newline at end of file Index: NpgsqlDriver.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Driver/NpgsqlDriver.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** NpgsqlDriver.cs 27 Dec 2004 02:26:13 -0000 1.2 --- NpgsqlDriver.cs 31 Dec 2004 17:26:01 -0000 1.3 *************** *** 1,4 **** - using System; - namespace NHibernate.Driver { --- 1,2 ---- *************** *** 29,48 **** private System.Type commandType; public NpgsqlDriver() { ! connectionType = System.Type.GetType("Npgsql.NpgsqlConnection, Npgsql"); ! commandType = System.Type.GetType("Npgsql.NpgsqlCommand, Npgsql"); ! if( connectionType==null || commandType==null ) { ! throw new HibernateException( ! "The IDbCommand and IDbConnection implementation in the Assembly Npgsql.dll could not be found. " + ! "Please ensure that the Assemblies needed to communicate with PostgreSQL " + ! "are in the Global Assembly Cache or in a location that NHibernate " + ! "can use System.Type.GetType(string) to load the types from." ); } } public override System.Type CommandType { --- 27,48 ---- private System.Type commandType; + /// <summary></summary> public NpgsqlDriver() { ! connectionType = System.Type.GetType( "Npgsql.NpgsqlConnection, Npgsql" ); ! commandType = System.Type.GetType( "Npgsql.NpgsqlCommand, Npgsql" ); ! if( connectionType == null || commandType == null ) { ! throw new HibernateException( ! "The IDbCommand and IDbConnection implementation in the Assembly Npgsql.dll could not be found. " + ! "Please ensure that the Assemblies needed to communicate with PostgreSQL " + ! "are in the Global Assembly Cache or in a location that NHibernate " + ! "can use System.Type.GetType(string) to load the types from." ); } } + /// <summary></summary> public override System.Type CommandType { *************** *** 50,53 **** --- 50,54 ---- } + /// <summary></summary> public override System.Type ConnectionType { *************** *** 55,78 **** } ! public override bool UseNamedPrefixInSql { get { return true; } } ! public override bool UseNamedPrefixInParameter { get { return true; } } ! public override string NamedPrefix { get { return ":"; } } public override bool SupportsMultipleOpenReaders { ! get { return true; } } public override bool SupportsPreparingCommands { --- 56,84 ---- } ! /// <summary></summary> ! public override bool UseNamedPrefixInSql { get { return true; } } ! /// <summary></summary> ! public override bool UseNamedPrefixInParameter { get { return true; } } ! /// <summary></summary> ! public override string NamedPrefix { get { return ":"; } } + /// <summary></summary> public override bool SupportsMultipleOpenReaders { ! get { return true; } } + /// <summary></summary> public override bool SupportsPreparingCommands { *************** *** 84,87 **** } } ! } ! --- 90,92 ---- } } ! } \ No newline at end of file Index: OdbcDriver.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Driver/OdbcDriver.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** OdbcDriver.cs 18 May 2004 05:02:27 -0000 1.4 --- OdbcDriver.cs 31 Dec 2004 17:26:01 -0000 1.5 *************** *** 1,4 **** --- 1,5 ---- using System; using System.Data; + using System.Data.Odbc; namespace NHibernate.Driver *************** *** 12,53 **** public class OdbcDriver : DriverBase { public OdbcDriver() { } ! public override System.Type CommandType { ! get { return typeof(System.Data.Odbc.OdbcCommand); } } public override System.Type ConnectionType { ! get { return typeof(System.Data.Odbc.OdbcConnection); } } public override IDbConnection CreateConnection() { ! return new System.Data.Odbc.OdbcConnection(); } ! public override IDbCommand CreateCommand() { ! return new System.Data.Odbc.OdbcCommand(); } ! public override bool UseNamedPrefixInSql { ! get {return false;} } ! public override bool UseNamedPrefixInParameter { ! get {return false;} } ! public override string NamedPrefix { ! get {return String.Empty;} } } ! } --- 13,62 ---- public class OdbcDriver : DriverBase { + /// <summary></summary> public OdbcDriver() { } ! ! /// <summary></summary> public override System.Type CommandType { ! get { return typeof( OdbcCommand ); } } + /// <summary></summary> public override System.Type ConnectionType { ! get { return typeof( OdbcConnection ); } } + /// <summary></summary> public override IDbConnection CreateConnection() { ! return new OdbcConnection(); } ! /// <summary></summary> ! public override IDbCommand CreateCommand() { ! return new OdbcCommand(); } ! /// <summary></summary> ! public override bool UseNamedPrefixInSql { ! get { return false; } } ! /// <summary></summary> ! public override bool UseNamedPrefixInParameter { ! get { return false; } } ! /// <summary></summary> ! public override string NamedPrefix { ! get { return String.Empty; } } } ! } \ No newline at end of file |