コード例 #1
0
ファイル: Filter.cs プロジェクト: ze-german/framework
 public FilterCondition(QueryToken token, FilterOperation operation, object value)
 {
     this.Token     = token;
     this.Operation = operation;
     this.Value     = ReflectionTools.ChangeType(value, operation.IsList() ? typeof(IEnumerable <>).MakeGenericType(Token.Type.Nullify()) : Token.Type);
 }
コード例 #2
0
ファイル: Filter.cs プロジェクト: ze-german/framework
 public FilterGroup(FilterGroupOperation groupOperation, QueryToken token, List <Filter> filters)
 {
     this.GroupOperation = groupOperation;
     this.Token          = token;
     this.Filters        = filters;
 }
コード例 #3
0
 internal static List <QueryToken> AndModuloTokens(this List <QueryToken> list, QueryToken parent)
 {
     list.AddRange(new List <QueryToken>
     {
         new ModuloToken(parent, 10),
         new ModuloToken(parent, 100),
         new ModuloToken(parent, 1000),
         new ModuloToken(parent, 10000),
     });
     return(list);
 }
コード例 #4
0
        internal HasValueToken(QueryToken parent)
        {
            this.parent = parent ?? throw new ArgumentNullException(nameof(parent));

            this.Priority = -1;
        }
コード例 #5
0
 internal WeekNumberToken(QueryToken parent)
     : base(parent)
 {
 }
コード例 #6
0
 internal DatePartStartToken(QueryToken parent, QueryTokenMessage name)
     : base(parent)
 {
     this.Name = name;
 }
コード例 #7
0
 internal StepToken(QueryToken parent, decimal stepSize)
     : base(parent)
 {
     this.StepSize = stepSize;
 }
コード例 #8
0
 internal MonthStartToken(QueryToken parent)
     : base(parent)
 {
 }
コード例 #9
0
 internal DateToken(QueryToken parent)
     : base(parent)
 {
 }
コード例 #10
0
 internal ModuloToken(QueryToken parent, int divisor)
     : base(parent)
 {
     this.Divisor = divisor;
 }
コード例 #11
0
 internal SystemTimeToken(QueryToken parent, SystemTimeProperty property)
 {
     Priority      = 8;
     this.property = property;
     this.parent   = parent;
 }
コード例 #12
0
 public Order(QueryToken token, OrderType orderType)
 {
     this.token     = token;
     this.orderType = orderType;
 }
コード例 #13
0
ファイル: CountToken.cs プロジェクト: zeevir/framework
 internal CountToken(QueryToken parent)
 {
     this.parent = parent ?? throw new ArgumentNullException(nameof(parent));
 }
コード例 #14
0
 internal SystemTimeToken(QueryToken parent, SystemTimeProperty property)
     : base(parent)
 {
     Priority      = 8;
     this.property = property;
 }
コード例 #15
0
 public Column(QueryToken token, string displayName)
 {
     this.token       = token;
     this.displayName = displayName;
 }
コード例 #16
0
 internal NetPropertyToken(QueryToken parent, Expression <Func <object> > pi, string displayName) :
     this(parent, ReflectionTools.GetPropertyInfo(pi), displayName)
 {
 }
コード例 #17
0
 internal EntityPropertyToken(QueryToken parent, PropertyInfo pi, PropertyRoute pr)
 {
     this.parent        = parent ?? throw new ArgumentNullException(nameof(parent));
     this.PropertyInfo  = pi ?? throw new ArgumentNullException(nameof(pi));
     this.PropertyRoute = pr;
 }
コード例 #18
0
 internal DayOfWeekToken(QueryToken parent)
     : base(parent)
 {
 }
コード例 #19
0
 internal static List <QueryToken> AndHasValue(this List <QueryToken> list, QueryToken parent)
 {
     list.Add(new HasValueToken(parent));
     return(list);
 }
コード例 #20
0
 internal DayOfYearToken(QueryToken parent)
     : base(parent)
 {
 }
コード例 #21
0
 internal EntityToStringToken(QueryToken parent)
     : base(parent)
 {
     Priority = 9;
 }