annotate Demo/Asp.Net/BusinessLogic/DataAccess/InventoryAccessor.cs @ 3:1ef98bd70424
!bug 100 +3h
Исправление проблемы BLToolkit + mono 3.4
author |
cin |
date |
Fri, 22 Aug 2014 17:34:46 +0400 |
parents |
f990fcb411a9 |
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 }
|