SqlCeTransaction Class

Represents an SQL transaction to be made at a data source. This class cannot be inherited.

Inheritance Hierarchy

System.Object
  System.MarshalByRefObject
    System.Data.Common.DbTransaction
      System.Data.SqlServerCe.SqlCeTransaction

Namespace:  System.Data.SqlServerCe
Assembly:  System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)

Syntax

'Declaration
Public NotInheritable Class SqlCeTransaction _
    Inherits DbTransaction
'Usage
Dim instance As SqlCeTransaction
public sealed class SqlCeTransaction : DbTransaction
public ref class SqlCeTransaction sealed : public DbTransaction
[<SealedAttribute>]
type SqlCeTransaction =  
    class
        inherit DbTransaction
    end
public final class SqlCeTransaction extends DbTransaction

The SqlCeTransaction type exposes the following members.

Properties

  Name Description
Public property Connection (inherited from DbTransaction)
Public property CurrentTransactionBsn Gets the begin sequence number (BSN) for the transaction.
Protected property DbConnection (inherited from DbTransaction)
Public property IsolationLevel Specifies the IsolationLevel for this transaction. (Overrides DbTransaction.IsolationLevel.)
Public property TrackingContext Gets or sets application-specific context information that is associated by the transaction with tracked operations on a SQL Server Compact database table.

Top

Methods

  Name Description
Public method Commit() Commits the database transaction. (Overrides DbTransaction.Commit().)
Public method Commit(CommitMode) Commits the database transaction using the specified CommitMode.
Public method CreateObjRef (inherited from MarshalByRefObject)
Public method Dispose() Releases all SqlCeConnection objects associated with the transaction.
Protected method Dispose(Boolean) (inherited from DbTransaction)
Public method Equals (inherited from Object)
Protected method Finalize (inherited from Object)
Public method GetHashCode (inherited from Object)
Public method GetLifetimeService (inherited from MarshalByRefObject)
Public method GetType (inherited from Object)
Public method InitializeLifetimeService (inherited from MarshalByRefObject)
Protected method MemberwiseClone() (inherited from Object)
Protected method MemberwiseClone(Boolean) (inherited from MarshalByRefObject)
Public method Rollback Rolls back a transaction from a pending state. (Overrides DbTransaction.Rollback().)
Public method ToString (inherited from Object)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate property IDbTransaction.Connection (inherited from DbTransaction)

Top

Remarks

You create a SqlCeTransaction object in your application by calling BeginTransaction on the SqlCeConnection object. All subsequent operations associated with the transaction (for example, committing or canceling the transaction), are performed on the SqlCeTransaction object.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Data.SqlServerCe Namespace

SqlCeDataAdapter

SqlCeConnection