public static IQueryable <TEntity> Search <TEntity>(this IQueryable <TEntity> target, string field, SearchyRule rule, object value)
 {
     return(Search(target, new SearchyCondition[] { new SearchyCondition(field, rule, value) }));
 }
示例#2
0
        async public Task <IEnumerable <TEntity> > All <TEntity>(string field, object value, SearchyRule rule = SearchyRule.EqualsTo) where TEntity : new()
        {
            await OpenConnection();

            return(await Connection.All <TEntity>(field, value, rule));
        }
 public static Task <IEnumerable <TEntity> > All <TEntity>(this DbConnection connection, string tableName, string field, object value, SearchyRule rule = SearchyRule.EqualsTo) where TEntity : new()
 {
     return(connection.All <TEntity>(tableName, new SearchyCondition[] { new SearchyCondition(field, rule, value) }));
 }
示例#4
0
 public SearchyRequest(string field, SearchyRule rule, object value) : this(new SearchyCondition(field, rule, value))
 {
 }