public Field this[string name] { get { var fields = from f in _fields where f.Name == name select f; if (fields.Count() > 0) { return fields.Single(); } else { Field f = new Field(this, name); _fields.Add(f); return f; } } }
public static Aggregate Sum(Field aggregate) { return new Sum(aggregate); }
public static Aggregate Min(Field aggregate) { return new Min(aggregate); }
public static Aggregate Max(Field aggregate) { return new Max(aggregate); }
public static Aggregate Count(Field aggregate) { return new Count(aggregate); }
public static Aggregate Avg(Field aggregate) { return new Avg(aggregate); }