Mercurial > pub > bltoolkit
view Demo/Asp.Net/BusinessLogic/DataAccess/InventoryAccessor.cs @ 5:f7d63a092920
Исправлено условие Where в тех случаях, когда репозитарий не является генериком
author | cin |
---|---|
date | Tue, 10 Mar 2015 16:02:11 +0300 |
parents | f990fcb411a9 |
children |
line wrap: on
line source
using System; using BLToolkit.Data; using BLToolkit.DataAccess; namespace PetShop.BusinessLogic.DataAccess { using ObjectModel; public abstract class InventoryAccessor : AccessorBase<InventoryAccessor.DB, InventoryAccessor> { public class DB : DbManager { public DB() : base("InventoryDB") {} } [SqlQuery(@"UPDATE Inventory SET Qty = Qty - @qty WHERE ItemId = @itemId")] public abstract void TakeInventory(DbManager db, int @qty, string @itemId); } }