C# 클래스 Realms.Transaction

Provides a scope to safely read and write to a Realm. Must use explicitly via Realm.BeginWrite.
All access to a Realm occurs within a Transaction. Read transactions are created implicitly.
상속: IDisposable
파일 보기 프로젝트 열기: realm/realm-dotnet 1 사용 예제들

공개 메소드들

메소드 설명
Commit ( ) : void

Use to save the changes to the realm. If Transaction is declared in a using block, must be used before the end of that block.

Dispose ( ) : void

Will automatically Rollback the transaction on existing scope, if not explicitly Committed.

Rollback ( ) : void

Use explicitly to undo the changes in a Transaction, otherwise it is automatically invoked by exiting the block.

비공개 메소드들

메소드 설명
Transaction ( ) : System
Transaction ( Realm realm ) : System

메소드 상세

Commit() 공개 메소드

Use to save the changes to the realm. If Transaction is declared in a using block, must be used before the end of that block.
public Commit ( ) : void
리턴 void

Dispose() 공개 메소드

Will automatically Rollback the transaction on existing scope, if not explicitly Committed.
public Dispose ( ) : void
리턴 void

Rollback() 공개 메소드

Use explicitly to undo the changes in a Transaction, otherwise it is automatically invoked by exiting the block.
public Rollback ( ) : void
리턴 void