C# Класс Microsoft.Isam.Esent.Interop.Update

A class that encapsulates an update on a JET_TABLEID.
Наследование: Microsoft.Isam.Esent.Interop.EsentResource
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Cancel ( ) : void

Cancel the update.

Save ( ) : void

Update the tableid.

Save is the final step in performing an insert or an update. The update is begun by calling creating an Update object and then by calling JetSetColumn or JetSetColumns one or more times to set the record state. Finally, Update is called to complete the update operation. Indexes are updated only by Update or and not during JetSetColumn or JetSetColumns

Save ( byte bookmark, int bookmarkSize, int &actualBookmarkSize ) : void

Update the tableid.

Save is the final step in performing an insert or an update. The update is begun by calling creating an Update object and then by calling JetSetColumn or JetSetColumns one or more times to set the record state. Finally, Update is called to complete the update operation. Indexes are updated only by Update or and not during JetSetColumn or JetSetColumns

SaveAndGotoBookmark ( ) : void

Update the tableid and position the tableid on the record that was modified. This can be useful when inserting a record because by default the tableid remains in its old location.

Save is the final step in performing an insert or an update. The update is begun by calling creating an Update object and then by calling JetSetColumn or JetSetColumns one or more times to set the record state. Finally, Update is called to complete the update operation. Indexes are updated only by Update or and not during JetSetColumn or JetSetColumns

Update ( JET_SESID sesid, JET_TABLEID tableid, JET_prep prep ) : System

Initializes a new instance of the Update class. This automatically begins an update. The update will be cancelled if not explicitly saved.

Защищенные методы

Метод Описание
ReleaseResource ( ) : void

Called when the transaction is being disposed while active. This should rollback the transaction.

Описание методов

Cancel() публичный Метод

Cancel the update.
public Cancel ( ) : void
Результат void

ReleaseResource() защищенный Метод

Called when the transaction is being disposed while active. This should rollback the transaction.
protected ReleaseResource ( ) : void
Результат void

Save() публичный Метод

Update the tableid.
Save is the final step in performing an insert or an update. The update is begun by calling creating an Update object and then by calling JetSetColumn or JetSetColumns one or more times to set the record state. Finally, Update is called to complete the update operation. Indexes are updated only by Update or and not during JetSetColumn or JetSetColumns
public Save ( ) : void
Результат void

Save() публичный Метод

Update the tableid.
Save is the final step in performing an insert or an update. The update is begun by calling creating an Update object and then by calling JetSetColumn or JetSetColumns one or more times to set the record state. Finally, Update is called to complete the update operation. Indexes are updated only by Update or and not during JetSetColumn or JetSetColumns
public Save ( byte bookmark, int bookmarkSize, int &actualBookmarkSize ) : void
bookmark byte Returns the bookmark of the updated record. This can be null.
bookmarkSize int The size of the bookmark buffer.
actualBookmarkSize int Returns the actual size of the bookmark.
Результат void

SaveAndGotoBookmark() публичный Метод

Update the tableid and position the tableid on the record that was modified. This can be useful when inserting a record because by default the tableid remains in its old location.
Save is the final step in performing an insert or an update. The update is begun by calling creating an Update object and then by calling JetSetColumn or JetSetColumns one or more times to set the record state. Finally, Update is called to complete the update operation. Indexes are updated only by Update or and not during JetSetColumn or JetSetColumns
public SaveAndGotoBookmark ( ) : void
Результат void

Update() публичный Метод

Initializes a new instance of the Update class. This automatically begins an update. The update will be cancelled if not explicitly saved.
public Update ( JET_SESID sesid, JET_TABLEID tableid, JET_prep prep ) : System
sesid JET_SESID The session to start the transaction for.
tableid JET_TABLEID The tableid to prepare the update for.
prep JET_prep The type of update.
Результат System