comparison Demo/Asp.Net/ObjectModel/CartItem.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.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 }