8using System.Collections.Generic;
16 private string _Data =
string.Empty;
19 [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
20 get {
return this._Data; }
21 [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
22 set { this._Data = value; }
31 internal class Criteria
33 public const string DefaultData =
"<new>";
39 [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
40 get {
return this._Data; }
45 this._Data = Criteria.DefaultData;
48 public Criteria(
string Data)
56 Criteria crit = criteria as Criteria;
57 this._Data = crit.Data;
62 throw new ApplicationException(
"Fail fetch");
65 private void DataPortal_Create(
object criteria)
67 Criteria crit = criteria as Criteria;
68 this._Data = crit.Data;
72 throw new ApplicationException(
"Fail create");
81 throw new ApplicationException(
"Fail insert");
89 throw new ApplicationException(
"Fail update");
97 throw new ApplicationException(
"Fail delete");
105 throw new ApplicationException(
"Fail delete self");
This is the base class from which most business objects will be derived.
void DataPortal_Delete(object criteria)
void DataPortal_DeleteSelf()
override object GetIdValue()
Override this method to return a unique identifying value for this object.
void DataPortal_Fetch(object criteria)
Static dictionary-like class that offers similar functionality to GlobalContext This is used in tests...
static void AddOrOverwrite(string key, string value)
Overwrite an item in the test results, to indicate an outcome of a particular operation
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.