9using System.Collections.Generic;
41 _data =
"new default data";
48 this._data =
"fetched existing data";
69 using (BypassPropertyChecks)
71 Data = criteria._data;
79 using (BypassPropertyChecks)
81 Data = criteria._data;
109 TestResults.
Add(
"StronglyTypedDP_Criteria", criteria._ID.ToString());
This is the base class from which most business objects will be derived.
Maintains metadata about a property.
static PropertyInfo< int > IdProperty
static StronglyTypedDP NewStronglyTypedDP(IDataPortal< StronglyTypedDP > dataPortal)
void DataPortal_Create(StronglyTypedDP.Criteria criteria)
static void DeleteStronglyTypedDP(int id, IDataPortal< StronglyTypedDP > dataPortal)
void DataPortal_DeleteSelf()
static StronglyTypedDP GetStronglyTypedDP(int id, IDataPortal< StronglyTypedDP > dataPortal)
void DataPortal_Delete(StronglyTypedDP.Criteria criteria)
static PropertyInfo< string > DataProperty
void DataPortal_Fetch(StronglyTypedDP.Criteria 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
Interface defining the members of the data portal type.
void Delete(params object[] criteria)
Called by a Shared (static in C#) method in the business class to cause immediate deletion of a speci...
object Fetch(params object[] criteria)
Called by a factory method in a business class to retrieve an object, which is loaded with values fro...
object Create(params object[] criteria)
Called by a factory method in a business class to create a new object, which is loaded with default v...
@ Serializable
Prevents updating or inserting until the transaction is complete.
@ Update
Update operation (includes insert, update and delete self).
@ Delete
Delete operation.