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.
Address.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="Address.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;
10using Csla;
11
13{
15 public class Address : AddressBase
16 {
17 public Address()
18 {
19 MarkAsChild();
20 }
21 public static readonly PropertyInfo<string> ZipCodeProperty = RegisterProperty(
22 typeof(Address),
23 new PropertyInfo<string>("ZipCode"));
24
25 public string ZipCode
26 {
27 get { return GetProperty<string>(ZipCodeProperty); }
28 set { SetProperty<string>(ZipCodeProperty, value); }
29 }
30 }
31}
Maintains metadata about a property.
static readonly PropertyInfo< string > ZipCodeProperty
Definition: Address.cs:21
@ Serializable
Prevents updating or inserting until the transaction is complete.