0
|
1 using System;
|
|
2
|
|
3 using BLToolkit.Common;
|
|
4 using BLToolkit.Mapping;
|
|
5
|
|
6 namespace PetShop.ObjectModel
|
|
7 {
|
|
8 [Serializable]
|
|
9 public class CartItem : EntityBase
|
|
10 {
|
|
11 [MapField("ItemId")] public string ItemID;
|
|
12 public string Name;
|
|
13 public int Quantity;
|
|
14 public decimal Price;
|
|
15 public string Type;
|
|
16 [MapField("CategoryId")] public string CategoryID;
|
|
17 [MapField("ProductId")] public string ProductID;
|
|
18
|
|
19 [MapIgnore] public decimal Subtotal { get { return Price * Quantity; } }
|
|
20 }
|
|
21 }
|