Show / Hide Table of Contents

    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.

    Inheritance
    System.Object
    ReadOnlyTransaction
    Transaction
    Implements
    System.IDisposable
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ToString()
    System.Object.ReferenceEquals(System.Object, System.Object)
    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, Boolean)

    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.

    System.Boolean manualRefresh

    When set to true, you will need to make your own calls to RefreshTable.

    Methods

    Dispose()

    Declaration
    public void Dispose()

    Dispose(Boolean)

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    Finalize()

    Declaration
    protected void Finalize()

    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
    Exceptions
    Type Condition
    JobNotOpenException

    If another job has been Opened since this one was.

    Implements

    System.IDisposable
    Back to top