mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Storage - Display conditions WIP
This commit is contained in:
1 parent
7b27d076b3
commit
2ae7d7872c
14 files changed
+92
-18
No files matched your search
@@ -4,11 +4,25 @@ using System.Linq.Expressions;
|
||||
using Artemis.Core.Models.Profile.Conditions.Abstract;
|
||||
using Artemis.Core.Plugins.Abstract.DataModels;
|
||||
using Artemis.Core.Services.Interfaces;
|
||||
using Artemis.Storage.Entities.Profile;
|
||||
|
||||
namespace Artemis.Core.Models.Profile.Conditions
|
||||
{
|
||||
public class DisplayConditionPredicate : DisplayConditionPart
|
||||
{
|
||||
public DisplayConditionPredicate(DisplayConditionPart parent)
|
||||
{
|
||||
Parent = parent;
|
||||
}
|
||||
|
||||
public DisplayConditionPredicate(DisplayConditionPart parent, DisplayConditionPredicateEntity entity)
|
||||
{
|
||||
Parent = parent;
|
||||
DisplayConditionPredicateEntity = entity;
|
||||
}
|
||||
|
||||
public DisplayConditionPredicateEntity DisplayConditionPredicateEntity { get; set; }
|
||||
|
||||
public PredicateType PredicateType { get; set; }
|
||||
public DisplayConditionOperator Operator { get; set; }
|
||||
|
||||
@@ -96,6 +110,11 @@ namespace Artemis.Core.Models.Profile.Conditions
|
||||
StaticConditionLambda = Expression.Lambda<Func<DataModel, bool>>(conditionExpression, leftSideParameter);
|
||||
CompiledStaticConditionLambda = StaticConditionLambda.Compile();
|
||||
}
|
||||
|
||||
public override void ApplyToEntity()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public enum PredicateType
|
||||
|
||||
Reference in new issue
Block a user