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); })); }
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" }); } }