/// <include file='Doc/en_EN/FbCommand.xml' path='doc/class[@name="FbCommand"]/constructor[@name="ctor(System.String,FbConnection,Transaction)"]/*'/> public FbCommand(string cmdText, FbConnection connection, FbTransaction transaction) : base() { this.parameters = new FbParameterCollection(); this.namedParameters = new StringCollection(); this.updatedRowSource = UpdateRowSource.Both; this.commandType = CommandType.Text; this.designTimeVisible = true; this.designTimeVisible = true; this.commandTimeout = 30; this.fetchSize = 200; this.commandText = ""; if (connection != null) { this.fetchSize = connection.ConnectionOptions.FetchSize; } if (cmdText != null) { this.CommandText = cmdText; } this.Connection = connection; this.transaction = transaction; }
/// <include file='Doc/en_EN/FbCommand.xml' path='doc/class[@name="FbCommand"]/method[@name="Dispose(System.Boolean)"]/*'/> protected override void Dispose(bool disposing) { lock (this) { if (!this.disposed) { try { // If there are an active reader close it this.CloseReader(); // Release any unmanaged resources this.Release(); // release any managed resources if (disposing) { this.implicitTransaction = false; this.commandText = null; this.commandTimeout = 0; this.connection = null; this.transaction = null; this.parameters = null; this.namedParameters.Clear(); this.namedParameters = null; } this.disposed = true; } finally { base.Dispose(disposing); } } } }
/// <include file='Doc/en_EN/FbCommand.xml' path='doc/class[@name="FbCommand"]/method[@name="Dispose(System.Boolean)"]/*'/> protected override void Dispose(bool disposing) { lock (this) { if (!this.disposed) { try { // If there are an active reader close it this.CloseReader(); // Release any unmanaged resources this.Release(); // release any managed resources if (disposing) { this.implicitTransaction = false; this.commandText = null; this.commandTimeout = 0; this.connection = null; this.transaction = null; this.parameters = null; this.namedParameters.Clear(); this.namedParameters = null; } this.disposed = true; } finally { base.Dispose(disposing); } } } }
/// <include file='Doc/en_EN/FbCommand.xml' path='doc/class[@name="FbCommand"]/constructor[@name="ctor(System.String,FbConnection,Transaction)"]/*'/> public FbCommand(string cmdText, FbConnection connection, FbTransaction transaction) : base() { this.parameters = new FbParameterCollection(); this.namedParameters = new StringCollection(); this.updatedRowSource = UpdateRowSource.Both; this.commandType = CommandType.Text; this.designTimeVisible = true; this.designTimeVisible = true; this.commandTimeout = 30; this.fetchSize = 200; this.commandText = ""; if (connection != null) { this.fetchSize = connection.ConnectionOptions.FetchSize; } if (cmdText != null) { this.CommandText = cmdText; } this.Connection = connection; this.transaction = transaction; }