Thread: [pgsqlclient-checkins] pgsqlclient_10/PostgreSql.Data.PgSqlClient/source PgParameter.cs,1.12,1.13 Pg
Status: Inactive
Brought to you by:
carlosga_fb
From: Carlos G. Á. <car...@us...> - 2004-07-22 10:57:39
|
Update of /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20056 Modified Files: PgParameter.cs PgParameterCollection.cs PgRowUpdatedEventArgs.cs PgRowUpdatingEventArgs.cs PgTransaction.cs Log Message: 2004-07-22 Carlos Guzman Alvarez <car...@te...> * USe PascalCase naming for private methods in all classes. Index: PgRowUpdatingEventArgs.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgRowUpdatingEventArgs.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** PgRowUpdatingEventArgs.cs 9 Feb 2004 14:19:22 -0000 1.2 --- PgRowUpdatingEventArgs.cs 22 Jul 2004 10:57:30 -0000 1.3 *************** *** 24,37 **** { public sealed class PgRowUpdatingEventArgs : RowUpdatingEventArgs ! { ! public PgRowUpdatingEventArgs(DataRow row, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) : base(row, command, statementType, tableMapping) { } ! new public PgCommand Command { get { return (PgCommand)base.Command; } set { base.Command = value; } } } } --- 24,45 ---- { public sealed class PgRowUpdatingEventArgs : RowUpdatingEventArgs ! { ! #region Constructors ! ! public PgRowUpdatingEventArgs(DataRow row, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) : base(row, command, statementType, tableMapping) { } ! #endregion ! ! #region Properties ! ! public new PgCommand Command { get { return (PgCommand)base.Command; } set { base.Command = value; } } + + #endregion } } Index: PgParameterCollection.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgParameterCollection.cs,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** PgParameterCollection.cs 10 Apr 2004 21:35:36 -0000 1.8 --- PgParameterCollection.cs 22 Jul 2004 10:57:30 -0000 1.9 *************** *** 160,164 **** foreach (PgParameter item in this.parameters) { ! if (this.cultureAwareCompare(item.ParameterName, parameterName)) { return index; --- 160,164 ---- foreach (PgParameter item in this.parameters) { ! if (this.CultureAwareCompare(item.ParameterName, parameterName)) { return index; *************** *** 253,257 **** } ! private bool cultureAwareCompare(string strA, string strB) { return CultureInfo.CurrentCulture.CompareInfo.Compare( --- 253,261 ---- } ! #endregion ! ! #region Private Methods ! ! private bool CultureAwareCompare(string strA, string strB) { return CultureInfo.CurrentCulture.CompareInfo.Compare( Index: PgParameter.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgParameter.cs,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** PgParameter.cs 10 Apr 2004 21:35:36 -0000 1.12 --- PgParameter.cs 22 Jul 2004 10:57:30 -0000 1.13 *************** *** 88,92 **** { get { return this.PgDbTypeToDbType(this.pgDbType); } ! set { this.pgDbType = this.dbTypeToPgType(value); } } --- 88,92 ---- { get { return this.PgDbTypeToDbType(this.pgDbType); } ! set { this.pgDbType = this.DbTypeToPgType(value); } } *************** *** 149,153 **** if (this.inferType) { ! this.setPgTypeFromValue(this.value); } } --- 149,153 ---- if (this.inferType) { ! this.SetPgTypeFromValue(this.value); } } *************** *** 387,391 **** #region Private Methods ! private void setPgTypeFromValue(object value) { if (value == null) --- 387,391 ---- #region Private Methods ! private void SetPgTypeFromValue(object value) { if (value == null) *************** *** 505,509 **** } ! private PgDbType dbTypeToPgType(DbType dbType) { switch(dbType) --- 505,509 ---- } ! private PgDbType DbTypeToPgType(DbType dbType) { switch(dbType) Index: PgRowUpdatedEventArgs.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgRowUpdatedEventArgs.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** PgRowUpdatedEventArgs.cs 9 Feb 2004 14:19:22 -0000 1.2 --- PgRowUpdatedEventArgs.cs 22 Jul 2004 10:57:30 -0000 1.3 *************** *** 24,36 **** { public sealed class PgRowUpdatedEventArgs : RowUpdatedEventArgs ! { ! public PgRowUpdatedEventArgs(DataRow row, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) : base(row, command, statementType, tableMapping) { ! } ! ! new public PgCommand Command { get { return (PgCommand)base.Command; } ! } ! } } --- 24,44 ---- { public sealed class PgRowUpdatedEventArgs : RowUpdatedEventArgs ! { ! #region Constructors ! ! public PgRowUpdatedEventArgs(DataRow row, IDbCommand command, StatementType statementType, DataTableMapping tableMapping) : base(row, command, statementType, tableMapping) { ! } ! ! #endregion ! ! #region Properties ! ! public new PgCommand Command { get { return (PgCommand)base.Command; } ! } ! ! #endregion ! } } Index: PgTransaction.cs =================================================================== RCS file: /cvsroot/pgsqlclient/pgsqlclient_10/PostgreSql.Data.PgSqlClient/source/PgTransaction.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** PgTransaction.cs 10 Apr 2004 21:35:36 -0000 1.7 --- PgTransaction.cs 22 Jul 2004 10:57:30 -0000 1.8 *************** *** 191,197 **** throw new PgException(ex.Message, ex); } ! } ! internal void InternalBeginTransaction() { try --- 191,201 ---- throw new PgException(ex.Message, ex); } ! } ! #endregion ! ! #region Internal methods ! ! internal void InternalBeginTransaction() { try |