9using System.Collections.Generic;
17 private string _name =
string.Empty;
18 private Nullable<int> _nullableInteger;
37 get {
return _nullableInteger; }
40 if (this._nullableInteger != value)
42 this._nullableInteger = value;
49 private class Criteria
58 public Criteria(
string name)
76 dataPortal.
Delete(
new Criteria(name));
84 private void DataPortal_Create(
object criteria)
86 Criteria crit = (Criteria)(criteria);
94 Criteria crit = (Criteria)(criteria);
This is the base class from which most business objects will be derived.
Nullable< int > NullableInteger
void DataPortal_Delete(object criteria)
static NullableObject GetNullableObject(string name, IDataPortal< NullableObject > dataPortal)
override object GetIdValue()
Override this method to return a unique identifying value for this object.
void DataPortal_Fetch(object criteria)
Nullable< int > _nullableIntMember
static void DeleteNullableObject(string name, IDataPortal< NullableObject > dataPortal)
static NullableObject NewNullableObject(IDataPortal< NullableObject > dataPortal)
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.