Search Results for

    Show / Hide Table of Contents

    Class Table<T>

    Typed table used by Database.

    Inheritance
    object
    Table
    Table<T>
    Inherited Members
    Table.jsonSettings
    Namespace: GGL.DB
    Assembly: GGL.dll
    Syntax
    public class Table<T> : Table where T : Data
    Type Parameters
    Name Description
    T

    Type that extends Data. This will be the type of the data contained and serialized by the table.

    Constructors

    | Edit this page View Source

    Table(params T[])

    Declaration
    public Table(params T[] baseData)
    Parameters
    Type Name Description
    T[] baseData Typed table used by .

    Properties

    | Edit this page View Source

    Path

    Declaration
    protected static string Path { get; }
    Property Value
    Type Description
    string

    Path of the saved table in local storage.

    Methods

    | Edit this page View Source

    Insert(params T[])

    Insert data in table.

    Declaration
    public void Insert(params T[] data)
    Parameters
    Type Name Description
    T[] data
    Remarks

    IDs may change while inserting.

    | Edit this page View Source

    Load()

    Restore in cache the data from the local storage.

    Declaration
    public override void Load()
    Overrides
    Table.Load()
    | Edit this page View Source

    Save()

    Write the content of the table to local storage.

    Declaration
    public override void Save()
    Overrides
    Table.Save()
    | Edit this page View Source

    Select(ulong)

    Select an item by ID.

    Declaration
    public T Select(ulong id)
    Parameters
    Type Name Description
    ulong id

    row ID

    Returns
    Type Description
    T

    Typed data

    | Edit this page View Source

    Select(params ulong[])

    Select a list of items. No params will return all data.

    Declaration
    public IEnumerable<T> Select(params ulong[] ids)
    Parameters
    Type Name Description
    ulong[] ids

    row IDs

    Returns
    Type Description
    IEnumerable<T>

    Typed data

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX