Class ReadOnlyTransaction
This is effectively a read-only transaction object. Use it to get the most up to date data for each member.
Construct the object with the active job.
Implements
Inherited Members
Namespace: DesignData.SDS2.Database
Assembly: DesignData.SDS2.Database.dll
Syntax
public class ReadOnlyTransaction : IDisposable
Remarks
This object should be disposed when it's no longer in use, use this with a using statement.
Constructors
ReadOnlyTransaction(Job, bool)
This is effectively a read-only transaction object. Use it to get the most up to date data for each member.
Construct the object with the active job.
Declaration
public ReadOnlyTransaction(Job activeJob, bool manualRefresh = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Job | activeJob | If it is not already opened, this job will be opened and made the active job. |
| bool | manualRefresh | When set to true, you will need to make your own calls to RefreshTable. |
Remarks
This object should be disposed when it's no longer in use, use this with a using statement.
Methods
Dispose()
This is effectively a read-only transaction object. Use it to get the most up to date data for each member.
Construct the object with the active job.
Declaration
public void Dispose()
Remarks
This object should be disposed when it's no longer in use, use this with a using statement.
Dispose(bool)
This is effectively a read-only transaction object. Use it to get the most up to date data for each member.
Construct the object with the active job.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing |
Remarks
This object should be disposed when it's no longer in use, use this with a using statement.
~ReadOnlyTransaction()
This is effectively a read-only transaction object. Use it to get the most up to date data for each member.
Construct the object with the active job.
Declaration
protected ~ReadOnlyTransaction()
Remarks
This object should be disposed when it's no longer in use, use this with a using statement.
RefreshTable(Table)
Call this before accessing members (using Get or GetBrief). This will read all of the "fixed" data for all members, and ensure that we know whether members have been deleted or not.
Any data read here is subject to change as long as items (such as members) are not locked.
Declaration
public void RefreshTable(Table table)
Parameters
| Type | Name | Description |
|---|---|---|
| Table | table |
Remarks
This object should be disposed when it's no longer in use, use this with a using statement.
Exceptions
| Type | Condition |
|---|---|
| JobNotOpenException | If another job has been Opened since this one was. |