/// <summary> /// Transaction class constructor. /// </summary> /// <param name="connection"></param> /// <param name="isoLevel"></param> internal SharpHsqlTransaction(SharpHsqlConnection connection, IsolationLevel isoLevel) { this._isolationLevel = IsolationLevel.ReadCommitted; this._sqlConnection = connection; this._sqlConnection.LocalTransaction = this; this._isolationLevel = isoLevel; }
/// <summary> /// Constructor using a command text and connection. /// </summary> /// <param name="sCommand"></param> /// <param name="conn"></param> public SharpHsqlCommand(string sCommand, SharpHsqlConnection conn) { _commandText = sCommand; _connection = conn; if (_connection.LocalTransaction != null) { _transaction = _connection.LocalTransaction; } }
/// <summary> /// Constructor using a command text string and a select connection object. /// </summary> /// <param name="selectCommandText"></param> /// <param name="selectConnection"></param> public SharpHsqlDataAdapter(string selectCommandText, SharpHsqlConnection selectConnection) : this() { _selectCommand = new SharpHsqlCommand(selectCommandText, selectConnection); }
/// <summary> /// Private constructor used internally. /// </summary> /// <param name="connection"></param> private SharpHsqlConnection(SharpHsqlConnection connection) { GC.SuppressFinalize(this); this._hidePasswordPwd = connection._hidePasswordPwd; this._constr = connection._constr; }