9using System.Collections.Generic;
17 private string _Data =
string.Empty;
31 get {
return this._Data; }
34 if (!this._Data.Equals(value))
45 internal class Criteria
47 public const string DefaultData =
"<new>";
49 private string _Data =
string.Empty;
52 get {
return this._Data; }
53 set { this._Data = value; }
57 this._Data = Criteria.DefaultData;
59 public Criteria(
string Data)
69 private void DataPortal_Create(
object criteria)
71 Criteria crit = criteria as Criteria;
72 this._Data = crit.Data;
74 TestResults.Add(
"Root",
"Created");
82 Criteria crit = criteria as Criteria;
83 this._Data = crit.Data;
This is the base class from which most business objects will be derived.
override object GetIdValue()
The unique ID of this object
string Data
The data value for this object
void DataPortal_Fetch(object criteria)
Handles DataPortal fetch calls
void DataPortal_Delete(object criteria)
Static dictionary-like class that offers similar functionality to GlobalContext This is used in tests...
static void Add(string key, string value)
Add an item to the test results, to indicate an outcome of a particular operation
@ Serializable
Prevents updating or inserting until the transaction is complete.
@ Update
Update operation (includes insert, update and delete self).
@ Delete
Delete operation.