Вы находитесь на странице: 1из 10

Expert C# Business Objects (Rockys Book) Apress

CSLA.NET

Component-base Scalable Logical Architecture

Rockford Lhotka
Presented by Dave Apelt (dave@tcpiq.com)

Application Frameworks
Conventions Supporting SW
Variable naming UI guidelines Documentation File structure Namespace DB nUnit nDoc Source Safe etc

Business Objects and their Base Classes

Supporting Algorithms
Cache Security Internationalisation Logging etc

ORM
nHibernate Wilsons ORM etc, etc, etc

Business Objects
Self contained Know how to load, save (and update) and delete themselves Contain all business logic Provide a perfect interface into the object Smart data

Common functionality
CRUD (CFUD) + Async calls * Readonly objects Collections and read only collections N-level Undo support Serialization Event support Data binding Primary key support (Criteria object) Business rules and violation handling Remote CRUD via remoting *

Rockys book
816 pages describe 8 classes! Step by step through all decisions and code Acknowledges that it is not a complete solution and people will need to change some aspects depending on their situation GREAT background to key technologies (remoting, serialisation, COM+, reflection, Attributes. Role based security)

Not so good things about the book


The book was way too long The book assumes that you dont know what a database is but assumes that you are a guru of UML Much of the book was devoted to supporting remote business objects

Not so good things about the technology


You would have to write LOTS of code The nullable type support was questionable (at best) Collection handling possibly inefficient use of the DB

Great things #1
Well explained The technology dovetails with a CRUD code generator Deep understanding of the affect that WebForms/WinForms has on base class design esp with data binding Makes great use of the various Interfaces provided by the framework Events are well considered N Level undo is excellent

Great things #2
How to get a distributed business object working is really well explained Great explanation of remoting, security, attributes and serialization

Internet

Web server

App server

Вам также может понравиться