You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Zero/ZeroLevel/Services/Queries/Query.cs

46 lines
1.2 KiB

6 years ago
namespace ZeroLevel.Patterns.Queries
{
public static class Query
{
public static IQuery EQ(string fieldName, object val)
{
return new QueryOp(fieldName, val, QueryOperation.EQ);
}
public static IQuery NEQ(string fieldName, object val)
{
return new QueryOp(fieldName, val, QueryOperation.NEQ);
}
public static IQuery GT(string fieldName, object val)
{
return new QueryOp(fieldName, val, QueryOperation.GT);
}
public static IQuery LT(string fieldName, object val)
{
return new QueryOp(fieldName, val, QueryOperation.LT);
}
public static IQuery IN(string fieldName, object val)
{
return new QueryOp(fieldName, val, QueryOperation.IN);
}
public static IQuery GTE(string fieldName, object val)
{
return new QueryOp(fieldName, val, QueryOperation.GTE);
}
public static IQuery LTE(string fieldName, object val)
{
return new QueryOp(fieldName, val, QueryOperation.LTE);
}
public static IQuery ALL()
{
return new QueryOp(string.Empty, null, QueryOperation.ALL);
}
}
}

Powered by TurnKey Linux.