Click or drag to resize
SQLiteExecute Class
A class that can perform some action on a SQLite command repeatedly until the command no longer throws a locked exception.
Inheritance Hierarchy
SystemObject
  VirtualRadar.DatabaseSQLiteExecute

Namespace: VirtualRadar.Database
Assembly: VirtualRadar.Database (in VirtualRadar.Database.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class SQLiteExecute

The SQLiteExecute type exposes the following members.

Constructors
  NameDescription
Public methodSQLiteExecute
Creates a new object.
Top
Properties
  NameDescription
Public propertyRetryIfLocked
Gets or sets a value indicating that the action should be retried if the database is locked.
Public propertyRetryIfLockedTimeout
Gets or sets the number of milliseconds that must elapse before the code gives up retrying an action that is failing due to a database lock.
Top
Methods
  NameDescription
Public methodCallActionUntilUnlocked
Calls the action passed across. If the action throws a SQLite locked exception then it retries the action.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExecuteNonQuery
Performs the ExecuteNonQuery operation on the command, returning the result. Will retry the command if the attempt fails due to a locked database.
Public methodExecuteReader(IDbCommand)
Performs the ExecuteReader operation on the command, returning the result. Will retry the command if the attempt fails due to a locked database.
Public methodExecuteReader(IDbCommand, CommandBehavior)
Performs the ExecuteReader operation on the command, returning the result. Will retry the command if the attempt fails due to a locked database.
Public methodExecuteScalar
Performs the ExecuteReader operation on the command, returning the result. Will retry the command if the attempt fails due to a locked database.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRead
Performs the Read operation on a data reader, retrying if the read throws a locked exception.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also