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)})"); }
public void Eq(string field, object value) { if (value == null) { this.conditions.Add(field + " IS NULL"); } else { this.conditions.Add(field + "=" + OrmUtils.Stringify(value)); } }