Exemplo n.º 1
0
 internal override void ParsePropertyExpression(Dictionary <string, string> placeHolders)
 {
     if (string.IsNullOrEmpty(PropertyExpression))
     {
         ParsedPropertyExpression = t => true;
         var prop = new Property(PropertyName, Type, PropertyCategory.Calculated);
         RuleAwareEntityPropertyInfo.CreateCalculatedProperty <TEntity>(_context.RootEntityType, prop);
     }
     else
     {
         base.ParsePropertyExpression(placeHolders);
     }
 }
Exemplo n.º 2
0
        internal virtual void ParsePropertyExpression(Dictionary <string, string> placeHolders)
        {
            var prop = new Property(PropertyName, Type, PropertyCategory.Calculated);

            RuleAwareEntityPropertyInfo.CreateCalculatedProperty <TEntity>(_context.RootEntityType, prop);
        }