示例#1
0
 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;
         }
     }
 }
示例#2
0
 public static Aggregate Sum(Field aggregate)
 {
     return new Sum(aggregate);
 }
示例#3
0
 public static Aggregate Min(Field aggregate)
 {
     return new Min(aggregate);
 }
示例#4
0
 public static Aggregate Max(Field aggregate)
 {
     return new Max(aggregate);
 }
示例#5
0
 public static Aggregate Count(Field aggregate)
 {
     return new Count(aggregate);
 }
示例#6
0
 public static Aggregate Avg(Field aggregate)
 {
     return new Avg(aggregate);
 }