Ejemplo n.º 1
0
 public void In <T, TK>(T field, List <TK> values) where T : Enum
 {
     if (values == null || !values.Any())
     {
         return;
     }
     this.conditions.Add($"{field.ToString()} IN ({OrmUtils.Stringify(values, true)})");
 }
Ejemplo n.º 2
0
 public void Eq(string field, object value)
 {
     if (value == null)
     {
         this.conditions.Add(field + " IS NULL");
     }
     else
     {
         this.conditions.Add(field + "=" + OrmUtils.Stringify(value));
     }
 }