logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Struct StoreTable

    Identifies a table or collection addressed by an IStructuredStore. Validates its name against a safe SQL-identifier pattern at construction so every backend — including ones that cannot parameterize table names (see relational providers) — is protected from identifier injection by construction, in one place, instead of re-validating per backend.

    Implements
    IEquatable<StoreTable>
    Inherited Members
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Serenity.Persistence.Domain.ValueObjects
    Assembly: Serenity.Global.Domain.dll
    Syntax
    public readonly struct StoreTable : IEquatable<StoreTable>

    Constructors

    StoreTable(string)

    Creates a new StoreTable with the specified, validated name.

    Declaration
    public StoreTable(string name)
    Parameters
    Type Name Description
    string name

    A valid SQL identifier: letters, digits, underscore, not starting with a digit.

    Exceptions
    Type Condition
    ArgumentException

    Thrown when name is not a valid identifier.

    Fields

    Name

    The validated table or collection name.

    Declaration
    public readonly string Name
    Field Value
    Type Description
    string

    Methods

    Equals(StoreTable)

    Declaration
    public bool Equals(StoreTable other)
    Parameters
    Type Name Description
    StoreTable other
    Returns
    Type Description
    bool

    Equals(object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    ValueType.Equals(object)

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    ValueType.GetHashCode()

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    ValueType.ToString()

    Operators

    operator ==(StoreTable, StoreTable)

    Declaration
    public static bool operator ==(StoreTable left, StoreTable right)
    Parameters
    Type Name Description
    StoreTable left
    StoreTable right
    Returns
    Type Description
    bool

    operator !=(StoreTable, StoreTable)

    Declaration
    public static bool operator !=(StoreTable left, StoreTable right)
    Parameters
    Type Name Description
    StoreTable left
    StoreTable right
    Returns
    Type Description
    bool

    Implements

    IEquatable<T>
    In this article
    © 2026 Serenity. All Rights Reserved