[This is preliminary documentation and is subject to change.]
The Table type exposes the following members.Constructors
Name | Description | |
---|---|---|
![]() | Table(Schema) |
Creates an empty table
|
![]() | Table(Rowset, Func Row, Boolean ) |
Creates a shallow copy from another rowset resorting data per schema key definition, optionally applying a filter
|
![]() | Table(Table, Func Row, Boolean ) |
Creates a shallow copy from another table, optionally applying a filter
|
Methods
Name | Description | |
---|---|---|
![]() | Add |
Inserts a row
(Inherited from RowsetBase.) |
![]() | Check |
Checks argument for being non-null and of the same schema with this rowset
(Inherited from RowsetBase.) |
![]() | Clear |
Purges table
(Inherited from RowsetBase.) |
![]() | Compare |
Compares two rows based on their key fields. Always compares in ascending direction
(Overrides RowsetBase Compare(Row, Row).) |
![]() ![]() | CompareRows |
Compares two rows based on their key fields. Always compares in ascending direction
|
![]() | Contains | (Inherited from RowsetBase.) |
![]() | CopyTo | (Inherited from RowsetBase.) |
![]() | Delete( Object ) |
Tries to find a row with the same set of key fields in this table and if found, deletes it and returns its index, otherwise -1
(Inherited from RowsetBase.) |
![]() | Delete(Row, IDataStoreKey) |
Tries to find a row with the same set of key fields in this table and if found, deletes it and returns its index, otherwise -1
(Inherited from RowsetBase.) |
![]() | DeleteAll |
Deletes all rows from table. This method is similar to Purge() but does logging (when enabled)
(Inherited from RowsetBase.) |
![]() | DoDelete |
Tries to find a row with the same set of key fields in this table and if found, deletes it and returns its index, otherwise -1
(Inherited from RowsetBase.) |
![]() | DoInsert |
Tries to insert a row. If another row with the same set of key fields already in the table returns -1, otherwise
returns insertion index
(Inherited from RowsetBase.) |
![]() | DoUpdate |
Tries to find a row with the same set of key fields in this table and if found, replaces it and returns its index,
otherwise returns -1
(Inherited from RowsetBase.) |
![]() | DoUpsert |
Tries to find a row with the same set of key fields in this table and if found, replaces it and returns true,
otherwise inserts the row (if schemas match) and returns false. Optionally pass updateWhere condition
that may check whether update needs to be performed
(Inherited from RowsetBase.) |
![]() | ![]() | 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 ![]() |
![]() | FindByKey( Object ) |
Tries to find a row by specified keyset and returns it or null if not found.
This method does not perform well on Rowsets instances as a rowset is unordered list which does linear search.
In contrast, Tables are always ordered and perform binary search instead
(Inherited from RowsetBase.) |
![]() | FindByKey(Row) |
Tries to find a row by specified keyset and returns it or null if not found
(Inherited from RowsetBase.) |
![]() | FindByKey(Row, Func Row, Boolean ) |
Tries to find a row by specified keyset and extra WHERE clause and returns it or null if not found.
This method does not perform well on Rowsets instances as a rowset is unordered list which does linear search.
In contrast, Tables are always ordered and perform binary search instead
(Inherited from RowsetBase.) |
![]() | FindByKey(Func Row, Boolean , Object ) |
Tries to find a row by specified keyset and extra WHERE clause and returns it or null if not found
(Inherited from RowsetBase.) |
![]() | GetChangeAt |
Retrievs a change by index or null if index is out of bounds or changes are not logged
(Inherited from RowsetBase.) |
![]() | GetEnumerator | (Inherited from RowsetBase.) |
![]() | ![]() | Serves as the default hash function. (Inherited from ![]() |
![]() | ![]() | Gets the (Inherited from ![]() ![]() |
![]() | IndexOf | (Inherited from RowsetBase.) |
![]() | Insert(Row) |
Inserts the row. Returns insertion index
(Inherited from RowsetBase.) |
![]() | Insert(Int32, Row) |
This is IList member implementation, index is ignored
(Overrides RowsetBase Insert(Int32, Row).) |
![]() | KeyRowFromValues |
Creates key row out of field values for keys
(Inherited from RowsetBase.) |
![]() | ![]() | Creates a shallow copy of the current (Inherited from ![]() ![]() |
![]() | Purge |
Deletes all rows from table without logging the deleted modifications even when LogModifications=true
(Inherited from RowsetBase.) |
![]() | PurgeChanges |
Clears modifications accumulated by this instance
(Inherited from RowsetBase.) |
![]() | Remove |
Performs row delete
(Inherited from RowsetBase.) |
![]() | RemoveAt |
Deletes row
(Inherited from RowsetBase.) |
![]() | SearchForRow |
Performs binary search on a sorted table
(Overrides RowsetBase SearchForRow(Row, Int32 ).) |
![]() | ![]() | Returns a string that represents the current object. (Inherited from ![]() |
![]() | Update |
Updates the row, Returns the row index or -1
(Inherited from RowsetBase.) |
![]() | Upsert |
Tries to find a row for update and if found, updates it and returns true,
otherwise inserts the row (if schemas match) and returns false. Optionally pass updateWhere condition
that may check whether update needs to be performed
(Inherited from RowsetBase.) |
![]() | Validate |
Validates all rows in this rowset.
Override to perform custom validations.
The method is not expected to throw exception in case of failed validation, rather return exception instance because
throwing exception really hampers validation performance when many rows need to be validated
(Inherited from RowsetBase.) |
![]() | WriteAsJSON |
Writes rowset as JSON including schema information. Do not call this method directly, instead call rowset.ToJSON() or use JSONWriter class
(Inherited from RowsetBase.) |
Extension Methods
Fields
Name | Description | |
---|---|---|
![]() | m_Changes | (Inherited from RowsetBase.) |
![]() | m_List | (Inherited from RowsetBase.) |
![]() | m_Schema | (Inherited from RowsetBase.) |
Properties
Name | Description | |
---|---|---|
![]() | AsReadonlyIList |
Returns data as non-generic readonly IList
(Inherited from RowsetBase.) |
![]() | ChangeCount |
Returns a count of accumulated modifications performed on the rowset, or zero when no modifications have been made or
LogModifications = false
(Inherited from RowsetBase.) |
![]() | Changes |
Returns accumulated modifications performed on the rowset, or empty enumerator if no modifications have been made or
LogModifications = false
(Inherited from RowsetBase.) |
![]() | Context |
Provides dynamic view of rowset's data context - attributes applicable to the whole rowset
(Inherited from RowsetBase.) |
![]() | ContextMap |
Provides dynamic view as JSONDataMap of rowset's data context - attributes applicable to the whole rowset
(Inherited from RowsetBase.) |
![]() | Count |
Returns row count in this rowset
(Inherited from RowsetBase.) |
![]() | InstanceGUID |
Returns globaly-unique instance ID.
This ID is useful as a key for storing rowsets in object stores and posting data back from web client to server.
(Inherited from RowsetBase.) |
![]() | IsReadOnly | (Inherited from RowsetBase.) |
![]() | Item |
This method does not support setting rows in table
(Overrides RowsetBase Item Int32 .) |
![]() | LogChanges |
Gets/Sets whether this rowset keeps track of all modifications done to it.
This property must be set to true to be able to save changes into ICRUDDataStore
(Inherited from RowsetBase.) |
![]() | Schema |
Returns a schema for rows that this rowset contains
(Inherited from RowsetBase.) |
Explicit Interface Implementations
Name | Description | |
---|---|---|
![]() ![]() | IEnumerable GetEnumerator | (Inherited from RowsetBase.) |
See Also