CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
BusyProperties.cs
Go to the documentation of this file.
1using System;
2
4{
6 public sealed class BusyProperties
7 : BusinessBase<BusyProperties>
8 {
9 public static readonly PropertyInfo<int> IdProperty = RegisterProperty<int>(c => c.Id);
10 public int Id
11 {
12 get
13 {
14 var x = 42;
15 return ReadProperty(IdProperty) + x;
16 }
17 private set { LoadProperty(IdProperty, value); }
18 }
19 }
20}
static readonly PropertyInfo< int > IdProperty
This is the base class from which most business objects will be derived.
Definition: BusinessBase.cs:38
Maintains metadata about a property.
@ Serializable
Prevents updating or inserting until the transaction is complete.