9using System.Collections.Generic;
54 get {
return ReadProperty(DataProperty); }
55 set { LoadProperty(DataProperty, value); }
74 private void DataPortal_Create(Criteria criteria)
100 throw new Exception(
"fail Update");
116 protected override void OnDeserialized(System.Runtime.Serialization.StreamingContext context)
118 base.OnDeserialized(context);
This is the base class from which most business objects will be derived.
Base type from which Criteria classes can be derived in a business class.
Maintains metadata about a property.
static PropertyInfo< string > DataProperty
void DataPortal_DeleteSelf()
static void DeleteRoot(string data, IDataPortal< RollbackRoot > dataPortal)
override void OnDeserialized(System.Runtime.Serialization.StreamingContext context)
static RollbackRoot NewRoot(IDataPortal< RollbackRoot > dataPortal)
void DataPortal_Fetch(Criteria criteria)
void DataPortal_Delete(object criteria)
static RollbackRoot GetRoot(string data, IDataPortal< RollbackRoot > dataPortal)
static PropertyInfo< bool > FailProperty
override object GetIdValue()
Override this method to return a unique identifying value for this object.
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
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.