コード例 #1
0
        public static void Run <T>(IQueryable <T> data) where T : IEntity
        {
            var loadOptions = new SampleLoadOptions {
                RemoteGrouping = true,
                Group          = BuildGroupParams(),
                GroupSummary   = BuildSummaryParams(Compat.CanUseRemoteAvg(data.Provider))
            };

            Assert.Null(Record.Exception(delegate {
                DataSourceLoader.Load(data, loadOptions);
            }));
        }
コード例 #2
0
 public static void Run <T>(IQueryable <T> data) where T : IEntity
 {
     if (Compat.CanUseRemoteAvg(data.Provider))
     {
         RunCore(data, new[] { "count", "min", "max", "sum", "avg" });
     }
     else
     {
         RunCore(data, new[] { "count", "min", "max", "sum" });
         RunCore(data, new[] { "avg" });
     }
 }