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.
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
Fields
Name
The validated table or collection name.
Declaration
public readonly string Name
Field Value
Methods
Equals(StoreTable)
Declaration
public bool Equals(StoreTable other)
Parameters
Returns
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
operator ==(StoreTable, StoreTable)
Declaration
public static bool operator ==(StoreTable left, StoreTable right)
Parameters
Returns
operator !=(StoreTable, StoreTable)
Declaration
public static bool operator !=(StoreTable left, StoreTable right)
Parameters
Returns
Implements