Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SqlCeTransaction Class

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

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)
public sealed class SqlCeTransaction : DbTransaction

The SqlCeTransaction type exposes the following members.

  NameDescription
Public propertyConnection (inherited from DbTransaction)
Public propertyCurrentTransactionBsnGets the begin sequence number (BSN) for the transaction.
Protected propertyDbConnection (inherited from DbTransaction)
Public propertyIsolationLevelSpecifies the IsolationLevel for this transaction. (Overrides DbTransaction.IsolationLevel.)
Public propertyTrackingContextGets or sets application-specific context information that is associated by the transaction with tracked operations on a SQL Server Compact database table.
Top
  NameDescription
Public methodCommit()Commits the database transaction. (Overrides DbTransaction.Commit().)
Public methodCommit(CommitMode)Commits the database transaction using the specified CommitMode.
Public methodCreateObjRef (inherited from MarshalByRefObject)
Public methodDispose()Releases all SqlCeConnection objects associated with the transaction.
Protected methodDispose(Boolean) (inherited from DbTransaction)
Public methodEquals (inherited from Object)
Protected methodFinalize (inherited from Object)
Public methodGetHashCode (inherited from Object)
Public methodGetLifetimeService (inherited from MarshalByRefObject)
Public methodGetType (inherited from Object)
Public methodInitializeLifetimeService (inherited from MarshalByRefObject)
Protected methodMemberwiseClone() (inherited from Object)
Protected methodMemberwiseClone(Boolean) (inherited from MarshalByRefObject)
Public methodRollbackRolls back a transaction from a pending state. (Overrides DbTransaction.Rollback().)
Public methodToString (inherited from Object)
Top
  NameDescription
Explicit interface implemetationPrivate propertyIDbTransaction.Connection (inherited from DbTransaction)
Top

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.

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.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.