Mercurial > pub > bltoolkit
comparison Demo/Asp.Net/ObjectModel/Item.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 public class Item : EntityBase | |
10 { | |
11 [MapField("ItemId"), PrimaryKey] public string ID; | |
12 | |
13 [MapField("ProductId")] public string ProductID; | |
14 [MapField("Supplier")] public int? SupplierID; | |
15 | |
16 [MapField("ListPrice")] public decimal? Price; | |
17 public decimal? UnitCost; | |
18 public ItemStatus Status; | |
19 public string Name; | |
20 public string Image; | |
21 | |
22 [MapField("ProductName"), NonUpdatable] public string ProductName; | |
23 [MapField("Qty"), NonUpdatable] public int Quantity; | |
24 [MapField("CategoryId"), NonUpdatable] public string CategoryID; | |
25 } | |
26 } |