mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-12-16 15:19:56 +00:00
Filtre par taille des monstres
This commit is contained in:
parent
d2fad57ca6
commit
4796f3b9f2
2 changed files with 2 additions and 4 deletions
|
|
@ -23,7 +23,6 @@ namespace AideDeJeu.Services
|
||||||
{
|
{
|
||||||
using (var context = await CreateContextAsync().ConfigureAwait(false))
|
using (var context = await CreateContextAsync().ConfigureAwait(false))
|
||||||
{
|
{
|
||||||
//We use OrderByDescending because Posts are generally displayed from most recent to oldest
|
|
||||||
return await context.Spells
|
return await context.Spells
|
||||||
.AsNoTracking()
|
.AsNoTracking()
|
||||||
.Where(spell =>
|
.Where(spell =>
|
||||||
|
|
@ -56,12 +55,11 @@ namespace AideDeJeu.Services
|
||||||
{
|
{
|
||||||
using (var context = await CreateContextAsync().ConfigureAwait(false))
|
using (var context = await CreateContextAsync().ConfigureAwait(false))
|
||||||
{
|
{
|
||||||
//We use OrderByDescending because Posts are generally displayed from most recent to oldest
|
|
||||||
return await context.Monsters
|
return await context.Monsters
|
||||||
.AsNoTracking()
|
.AsNoTracking()
|
||||||
.Where(monster =>
|
.Where(monster =>
|
||||||
monster.Type.Contains(type) &&
|
monster.Type.Contains(type) &&
|
||||||
//("[" + monster.Size.Trim().ToUpper() + "]").Contains("[" + size.ToUpper() + "]") &&
|
(string.IsNullOrEmpty(size) || monster.Size.Equals(size)) &&
|
||||||
monster.Source.Contains(source)
|
monster.Source.Contains(source)
|
||||||
)
|
)
|
||||||
//.OrderByDescending(monster => monster.Id)
|
//.OrderByDescending(monster => monster.Id)
|
||||||
|
|
|
||||||
|
|
@ -152,7 +152,7 @@ namespace AideDeJeu.ViewModels
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private int _MaxPower = 18;
|
private int _MaxPower = 28;
|
||||||
public int MaxPower
|
public int MaxPower
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue