Exemplo n.º 1
0
 public EntityQueryStrategy(string key, string value, IEntityQueryMapper <T> queryMapper)
 {
     this.Key   = key;
     this.value = value;
     this.entityPropertySelector = queryMapper.GetSelector(key);
     this.operation = OperatorFactory.Default();
 }
Exemplo n.º 2
0
 public static IQueryStrategy Create(string key, string value, IEntityQueryMapper <T> queryMapper)
 {
     return(OperatorFactory.IsOperator(key) ?
            new OperatorQueryStrategy(key, value) as IQueryStrategy : new EntityQueryStrategy <T>(key, value, queryMapper));
 }