[This is preliminary documentation and is subject to change.]
The Schema type exposes the following members.Constructors
| Name | Description | |
|---|---|---|
| Schema(String, Schema FieldDef ) | Initializes a new instance of the Schema class | |
| Schema(String, Boolean, Schema FieldDef ) | Initializes a new instance of the Schema class | |
| Schema(String, Boolean, IEnumerable Schema FieldDef , IEnumerable TableAttribute ) | Initializes a new instance of the Schema class | |
| Schema(String, Boolean, IEnumerable TableAttribute , Schema FieldDef ) | Initializes a new instance of the Schema class |
Methods
| Name | Description | |
|---|---|---|
Determines whether the specified object is equal to the current object. (Inherited from | ||
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from | ||
| FromJSON(String, Boolean) | ||
| FromJSON(JSONDataMap, Boolean) | ||
| GetEnumerator | ||
| GetFieldDefByIndex |
Finds fielddef by name or throws if name is not found
| |
| GetFieldDefByName |
Finds fielddef by name or throws if name is not found
| |
| GetFieldMembers |
Gets all property members of TypedRow that are tagged as [Field]
| |
| GetForTypedRow(Type) |
Returns schema instance for the TypedRow instance by fetching schema object from cache or
creating it if it has not been cached yet
| |
| GetForTypedRow(TypedRow) |
Returns schema instance for the TypedRow instance by fetching schema object from cache or
creating it if it has not been cached yet
| |
| GetForTypedRow TRow |
Returns schema instance for the TypedRow instance by fetching schema object from cache or
creating it if it has not been cached yet
| |
Serves as the default hash function. (Inherited from | ||
| GetKeyFieldDefsForTarget |
Returns FieldDefs in their order within rows that are declared as key fields for particular target
| |
| GetTableAttrForTarget |
Returns a TableAttribute that matches the supplied targetName, or if one was not defined then
returns TableAttribute which matches any target or null
| |
Gets the (Inherited from | ||
| IsEquivalentTo |
Performs logical equivalence testing of two schemas
| |
Creates a shallow copy of the current (Inherited from | ||
| ToString | (Overrides | |
| WriteAsJSON |
Writes schema as JSON. Do not call this method directly, instead call rowset.ToJSON() or use JSONWriter class
|
Extension Methods
Fields
| Name | Description | |
|---|---|---|
| EXTRA_SUPPORTS_DELETE_ATTR | ||
| EXTRA_SUPPORTS_INSERT_ATTR | ||
| EXTRA_SUPPORTS_UPDATE_ATTR |
Properties
| Name | Description | |
|---|---|---|
| AnyTargetKeyFieldDefs |
Returns FieldDefs in their order within rows that are declared as key fields in ANY_TARGET
| |
| AnyVisibleFieldDefs |
Returns FieldDefs in their order within rows as
| |
| ExtraData |
Returns Extra data that may be associated with schema by various providers.
The field is lazily allocated
| |
| FieldCount |
Returns field count
| |
| FieldDefs |
Returns FieldDefs in their order within rows that this schema describes
| |
| Item Int32 |
Returns a field definition by a positional index within the row
| |
| Item String |
Returns a field definition by a unique case-insensitive field name within schema
| |
| Name |
For TypedRows, returns a unique fully-qualified row type name, whichs is the global identifier of this schema instance
| |
| ReadOnly |
Specifies that target that this schema represents (i.e. db table) is not updatable so DataStore will not be able to save row changes made in ram
| |
| SchemaEquivalenceEqualityComparer |
Returns an instance of IEqualityComparer(Schema) that performs logical equivalence testing
| |
| TableAttrs |
Returns table-level attributes
| |
| TypedRowType |
Returns a type of TypedRow if schema was created for TypedRow, or null
|
Explicit Interface Implementations
| Name | Description | |
|---|---|---|
| IEnumerable GetEnumerator |
See Also