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.
AddressBase.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="AddressBase.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>no summary</summary>
7//-----------------------------------------------------------------------
8using System;
9using Csla;
11
13{
15 public class AddressBase : BusinessBase<AddressBase>
16 {
17 public static readonly PropertyInfo<string> CityProperty = RegisterProperty<string>(
18 typeof(AddressBase),
19 new PropertyInfo<string>("City"));
20
21 public string City
22 {
23 get { return GetProperty<string>(CityProperty); }
24 set { SetProperty<string>(CityProperty, value); }
25 }
26 }
27}
This is the base class from which most business objects will be derived.
Definition: BusinessBase.cs:38
Maintains metadata about a property.
static readonly PropertyInfo< string > CityProperty
Definition: AddressBase.cs:17
@ Serializable
Prevents updating or inserting until the transaction is complete.