0
|
1 using System;
|
|
2 using System.Xml.Serialization;
|
|
3
|
|
4 using BLToolkit.DataAccess;
|
|
5 using BLToolkit.EditableObjects;
|
|
6 using BLToolkit.Mapping;
|
|
7 using BLToolkit.Validation;
|
|
8
|
|
9 namespace Demo.WebServices.ObjectModel
|
|
10 {
|
|
11 [XmlType(AnonymousType = true)]
|
|
12 public abstract class Person: EditableObject<Person>
|
|
13 {
|
|
14 [PrimaryKey, MapField("PersonID")] public abstract int Id { get; set; }
|
|
15 [MaxLength(50), Required] public abstract string LastName { get; set; }
|
|
16 [MaxLength(50), Required] public abstract string FirstName { get; set; }
|
|
17 [MaxLength(50)] public abstract string MiddleName { get; set; }
|
|
18 public abstract Gender Gender { get; set; }
|
|
19 }
|
|
20 }
|