SqlCeTransaction 成员

表示要在数据源执行的 SQL 事务。无法继承此类。

SqlCeTransaction 类型公开以下成员。

方法

  名称 说明
公共方法 Commit() () () () 提交数据库事务。 (重写 DbTransaction. . :: . .Commit() () () ()。)
公共方法 Commit(CommitMode) 使用指定的 CommitMode 提交数据库事务。
公共方法 CreateObjRef (inherited from MarshalByRefObject)
公共方法 Dispose() () () () 释放与事务关联的所有 SqlCeConnection 对象。
受保护的方法 Dispose (inherited from DbTransaction)
公共方法 Equals (inherited from Object)
受保护的方法 Finalize (inherited from Object)
公共方法 GetHashCode (inherited from Object)
公共方法 GetLifetimeService (inherited from MarshalByRefObject)
公共方法 GetType (inherited from Object)
公共方法 InitializeLifetimeService (inherited from MarshalByRefObject)
受保护的方法 MemberwiseClone (inherited from Object)
受保护的方法 MemberwiseClone (inherited from MarshalByRefObject)
公共方法 Rollback 从挂起状态回滚事务。 (重写 DbTransaction. . :: . .Rollback() () () ()。)
公共方法 ToString (inherited from Object)

页首

属性

  名称 说明
公共属性 Connection (inherited from DbTransaction)
公共属性 CurrentTransactionBsn 获取事务的开始序列号 (BSN)。
受保护的属性 DbConnection (inherited from DbTransaction)
公共属性 IsolationLevel 指定该事务的 IsolationLevel。 (重写 DbTransaction. . :: . .IsolationLevel。)
公共属性 TrackingContext 获取或设置应用程序特定的上下文信息,该事务将这些信息与针对 SQL Server Compact 数据库表的跟踪操作相关联。

页首

显式接口实现

  名称 说明
显式接口实现专用属性 IDbTransaction. . :: . .Connection (inherited from DbTransaction)

页首

请参阅

参考

SqlCeTransaction类

System.Data.SqlServerCe 命名空间