|
| void | CreateTable () |
| | Creates the database table if it does not exist.
|
| void | Insert (T item) |
| void | Update (T item) |
| IEnumerable< T > | GetAll () |
| override string | Serialize () |
| | Produces a serialized representation of this SQL-backed game model.
|
| override void | Deserialize (string data) |
| | Ignores the provided serialized data and performs no action.
|
| string | Serialize () |
| void | Deserialize (string data) |
◆ CreateTable()
| void Baruah.DataSmith.SQLGameModel< T >.CreateTable |
( |
| ) |
|
|
abstract |
Creates the database table if it does not exist.
◆ Deserialize()
| override void Baruah.DataSmith.SQLGameModel< T >.Deserialize |
( |
string | data | ) |
|
Ignores the provided serialized data and performs no action.
- Parameters
-
| data | Serialized data to deserialize (ignored). |
◆ GetAll()
| IEnumerable< T > Baruah.DataSmith.SQLGameModel< T >.GetAll |
( |
| ) |
|
|
abstract |
Retrieves all records of type T from the model's data store.
- Returns
- An IEnumerable<T> containing every record of type T in the model's data store.
◆ Insert()
| void Baruah.DataSmith.SQLGameModel< T >.Insert |
( |
T | item | ) |
|
|
abstract |
Inserts the provided entity as a new record in the underlying data store.
- Parameters
-
| item | The entity to insert. |
◆ Serialize()
| override string Baruah.DataSmith.SQLGameModel< T >.Serialize |
( |
| ) |
|
Produces a serialized representation of this SQL-backed game model.
- Returns
- An empty string.
◆ Update()
| void Baruah.DataSmith.SQLGameModel< T >.Update |
( |
T | item | ) |
|
|
abstract |
Updates the database record that corresponds to the provided item.
- Parameters
-
| item | The entity containing the updated values; its identifier is used to locate the existing record. |
The documentation for this class was generated from the following file: