comparison Demo/Asp.Net/ObjectModel/Order.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
3 using BLToolkit.Common;
4 using BLToolkit.DataAccess;
5 using BLToolkit.Mapping;
6
7 namespace PetShop.ObjectModel
8 {
9 [TableName("Orders")]
10 public class Order : EntityBase
11 {
12 [PrimaryKey, NonUpdatable]
13 [MapField("OrderId")] public int ID;
14
15 [MapField("UserId")] public string UserID;
16 public DateTime OrderDate;
17 public string Courier;
18 public decimal TotalPrice;
19 public int AuthorizationNumber;
20 public string Locale;
21
22 [MapField(Format="Ship{0}")] public Address ShippingAddress = new Address();
23 [MapField(Format="Bill{0}")] public Address BillingAddress = new Address();
24
25 [NonUpdatable] public string Status;
26
27 public OrderLineItem[] Lines;
28 public CreditCard CreditCard;
29 }
30 }