2using System.Collections.Generic;
5using System.Threading.Tasks;
20 RegisterProperty<string>(c => c.Name);
43 var child = dataPortal.
Create();
74 base.AddBusinessRules();
83 if (target.Name ==
"2")
96 private void Child_Insert()
100 private void Child_Update()
104 private void Child_DeleteSelf()
113 foreach (var item
in this)
118 internal void MockDeleted()
125 private void Create()
140 private void DataPortal_Create()
149 private void DataPortal_Create()
156 private void DataPortal_Create()
This is the base class from which most business objects will be derived.
This is the base class from which most business collections or lists will be derived.
This is the base class from which most business collections or lists will be derived.
MobileList< C > DeletedList
A collection containing all child objects marked for deletion.
This is the base class from which collections of editable root business objects should be derived.
This is the base class from which collections of editable root business objects should be derived.
Maintains metadata about a property.
Base class used to create business and validation rules.
Tracks the business rules for a business object.
List< string > CheckRules()
Invokes all rules for the business type.
void AddRule(IBusinessRuleBase rule)
Associates a business rule with the business object.
void AddChild(IDataPortal< Foo > dataPortal)
override void AddBusinessRules()
static readonly PropertyInfo< string > NameProperty
static readonly PropertyInfo< Foo > ChildProperty
static readonly PropertyInfo< FooList > ChildListProperty
Interface defining the members of the child data portal type.
Interface defining the members of the data portal type.
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...
Context information provided to a business rule when it is invoked.
object Target
Gets a reference to the target business object.
void AddErrorResult(string description)
Add a Error severity result to the Results list.
@ Serializable
Prevents updating or inserting until the transaction is complete.
@ Update
Update operation (includes insert, update and delete self).
@ Execute
Execute operation.
@ Create
Create operation.