internal void delete(ItemModel item) { ItemMapper.GetDatabase().Delete(item); }
internal void update(ItemModel item) { ItemMapper.GetDatabase().Update(item); }
public void Add(ItemModel item) { ItemMapper.GetDatabase().Insert(item); }
public ItemModel GetById(string id) { return(ItemMapper.GetDatabase().SingleOrDefault <ItemModel>("WHERE Id=@0", id)); }
internal IList <ItemModel> GetByOwner(string Owner) { return(ItemMapper.GetDatabase().Query <ItemModel>("Select * from Items Where Owner=@0 order by RANDOM()", Owner).ToList()); }
internal IList <ItemModel> Get() { return(ItemMapper.GetDatabase().Query <ItemModel>("select * from Items order by RANDOM()").ToList()); }