Mercurial > pub > bltoolkit
comparison Demo/WebServices/ObjectModel/Person.cs @ 0:f990fcb411a9
Копия текущей версии из github
author | cin |
---|---|
date | Thu, 27 Mar 2014 21:46:09 +0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f990fcb411a9 |
---|---|
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 } |