... attributes:
CHAPTER 4 ■ DATA ACCESS AND SECURITY220
Figure 4- 11. U
sing S
er
vicedDataPortal to wrap a business object in a transaction
6315_c 04_ final.qxd 4/ 13/06 12: 34 PM Page 220
on the right business ... the actual business object
' from CriteriaBase
businessType = CType(criteria, CriteriaBase).ObjectType
CHAPTER 4 ■ DATA ACCESS AND SECURITY226
6315_c 04_ final.qxd...
... detail.
BusinessBase
The BusinessBase class is the base fr
om which all editable (read-write) business objects will be
created. In other words, to create a business object, inherit from
BusinessBase, ... DESIGN86
6315_c02_final.qxd 4/ 13/06 12:27 PM Page 86
Business Framework
Implementation
In Chapter 1, I discussed the concepts behind the use of business objects and distribute...
... that will be added in Chapter 4, the
BusinessBase class is
now complete.
BusinessListBase Class
While BusinessBase is the primary base class for building business objects, the framework must also
s
upport ... cases.
CHAPTER 3 ■ BUSINESS FRAMEWORK IMPLEMENTATION1 34
6315_c03_final.qxd 4/ 13/06 12:29 PM Page 1 34
Edit Level Tracking for Child Objects
N-level undo of collections of c...
...
SmartDate.
Common Business Rules
The BusinessBase class
implemented in Chapter 3 includes support for validation rules. Each rule
is a method with a signature that conforms to the
RuleHandler delegate. A business ... mapped. Business
objects often have read-only properties, and obviously it isn’t possible to set those values. Yet the
IDictionary or DTO may have a value for that pro...
... Editable Objects
F
or r
ead-only
objects
, r
etrieval is the only data access concept required. Editable business objects
and editable collections (those deriving from
BusinessBase and BusinessListBase) ... classes from which each
business object should inherit. The editable business objects inherit from
BusinessBase, and the
collections of editable child objects inherit fro...
... Snippets.
CHAPTER 8 ■ BUSINESS OBJECT IMPLEMENTATION4 14
6315_c08_final.qxd 4/ 7/06 2:00 PM Page 41 4
The BusinessBase class requires one generic type parameter. This is the type of the business
object ... True
RaiseListChangedEvents = True
CHAPTER 7 ■ USING THE CSLA .NET BASE CLASSES4 04
6315_c07_final.qxd 4/ 7/06 2:19 PM Page 40 4
Business Class Implementation
T
he business cl...
... form, even if the form is resized.
CHAPTER 9 ■ WINDOWS FORMS UI4 74
Figure 9 -4. MainForm layout
6315_c09_final.qxd 4/ 7/06 2:12 PM Page 47 4
' it wasn't already loaded, so show it
AddWinPart(New ... ListSortDirection.Ascending)
Me.ProjectListBindingSource.DataSource = sortedList
End Sub
CHAPTER 9 ■ WINDOWS FORMS UI4 94
Figure 9-11. Layout of the ProjectSelect form
6315_c09_fina...
... _
Handles AddRoleButton.Click
CHAPTER 10 ■ WEB FORMS UI 544
Figure 10-12. Fields dialog for a GridView control
6315_c10_final.qxd 4/ 7/06 1:51 PM Page 544
The current Project object is retrieved from Session ... ser
vices on business objects like those in this book wor
ks out w
ell in this model,
because all your business logic is in those objects. If the service merely provides an...