O'Reilly logo

Expert C# 2008 Business Objects by Rockford Lhotka

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Property Declarations

Chapter 6 introduced the idea of the PropertyInfo<T> class from the Csla namespace. This type allows a business object to declare metadata about the object's properties, and most importantly, it helps eliminate the use of a string literal to reference the property name throughout the business class.

While a business developer could use standard .NET property declaration syntax, it would require him to invoke the authorization, business, and validation rules; processing; and data binding behaviors of CSLA .NET manually in each property.

To simplify the code required to utilize all these behaviors, CSLA .NET supports a coding model that is more abstract, allowing the framework to do much of the work automatically. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required