Mercurial > pub > bltoolkit
annotate Demo/Asp.Net/BusinessLogic/DataAccess/InventoryAccessor.cs @ 0:f990fcb411a9
Копия текущей версии из github
author | cin |
---|---|
date | Thu, 27 Mar 2014 21:46:09 +0400 |
parents | |
children |
rev | line source |
---|---|
0 | 1 using System; |
2 | |
3 using BLToolkit.Data; | |
4 using BLToolkit.DataAccess; | |
5 | |
6 namespace PetShop.BusinessLogic.DataAccess | |
7 { | |
8 using ObjectModel; | |
9 | |
10 public abstract class InventoryAccessor : AccessorBase<InventoryAccessor.DB, InventoryAccessor> | |
11 { | |
12 public class DB : DbManager { public DB() : base("InventoryDB") {} } | |
13 | |
14 [SqlQuery(@"UPDATE Inventory SET Qty = Qty - @qty WHERE ItemId = @itemId")] | |
15 public abstract void TakeInventory(DbManager db, int @qty, string @itemId); | |
16 } | |
17 } |