@@ -24,7 +24,8 @@ static ParameterExpression CreateTargetParam<T>() {
2424
2525 [ Fact ]
2626 public void Compile ( ) {
27- var compiler = new RemoteGroupExpressionCompiler < DataItem > (
27+ var compiler = new RemoteGroupExpressionCompiler (
28+ typeof ( DataItem ) ,
2829 new [ ] {
2930 new GroupingInfo { Selector = "G1" } ,
3031 new GroupingInfo { Selector = "G2" , Desc = true }
@@ -83,7 +84,7 @@ public void Compile() {
8384
8485 [ Fact ]
8586 public void CompileEmpty ( ) {
86- var expr = new RemoteGroupExpressionCompiler < DataItem > ( null , null , null ) . Compile ( CreateTargetParam < DataItem > ( ) ) ;
87+ var expr = new RemoteGroupExpressionCompiler ( typeof ( DataItem ) , null , null , null ) . Compile ( CreateTargetParam < DataItem > ( ) ) ;
8788 Assert . Equal (
8889 "data"
8990 + ".GroupBy(obj => new AnonType())"
@@ -94,7 +95,7 @@ public void CompileEmpty() {
9495
9596 [ Fact ]
9697 public void IgnoreGroupSummaryIfNoGroups ( ) {
97- var compiler = new RemoteGroupExpressionCompiler < DataItem > ( null , null , new [ ] {
98+ var compiler = new RemoteGroupExpressionCompiler ( typeof ( DataItem ) , null , null , new [ ] {
9899 new SummaryInfo { Selector = "ignore me" , SummaryType = "ignore me" }
99100 } ) ;
100101
@@ -105,8 +106,8 @@ public void IgnoreGroupSummaryIfNoGroups() {
105106 public void GroupInterval_Numeric ( ) {
106107
107108 string Compile < T > ( string selector , bool guardNulls ) {
108- var compiler = new RemoteGroupExpressionCompiler < T > (
109- guardNulls , false , null ,
109+ var compiler = new RemoteGroupExpressionCompiler (
110+ typeof ( T ) , guardNulls , false , null ,
110111 new [ ] {
111112 new GroupingInfo { Selector = selector , GroupInterval = "123" }
112113 } ,
@@ -129,8 +130,8 @@ string Compile<T>(string selector, bool guardNulls) {
129130 public void GroupInterval_Date ( ) {
130131
131132 string Compile < T > ( string selector , bool guardNulls ) {
132- var compiler = new RemoteGroupExpressionCompiler < T > (
133- guardNulls , false , null ,
133+ var compiler = new RemoteGroupExpressionCompiler (
134+ typeof ( T ) , guardNulls , false , null ,
134135 new [ ] {
135136 new GroupingInfo { Selector = selector , GroupInterval = "year" } ,
136137 new GroupingInfo { Selector = selector , GroupInterval = "quarter" } ,
@@ -204,7 +205,8 @@ public void Bug100() {
204205 }
205206
206207 void Bug100Core < T > ( params string [ ] memberNames ) {
207- var compiler = new RemoteGroupExpressionCompiler < T > (
208+ var compiler = new RemoteGroupExpressionCompiler (
209+ typeof ( T ) ,
208210 memberNames . Select ( i => new GroupingInfo { Selector = i } ) . ToArray ( ) ,
209211 null ,
210212 null
@@ -218,7 +220,7 @@ void Bug100Core<T>(params string[] memberNames) {
218220
219221 [ Fact ]
220222 public void GetSumType_ExpandFalse ( ) {
221- Type GetSumType < T > ( ) => RemoteGroupExpressionCompiler < object > . GetSumType ( typeof ( T ) , false ) ;
223+ Type GetSumType < T > ( ) => RemoteGroupExpressionCompiler . GetSumType ( typeof ( T ) , false ) ;
222224
223225 // Validation: check lambda type in new T[0].Sum(i => i)
224226
@@ -241,7 +243,7 @@ public void GetSumType_ExpandFalse() {
241243
242244 [ Fact ]
243245 public void GetSumType_ExpandTrue ( ) {
244- Type GetSumType < T > ( ) => RemoteGroupExpressionCompiler < object > . GetSumType ( typeof ( T ) , true ) ;
246+ Type GetSumType < T > ( ) => RemoteGroupExpressionCompiler . GetSumType ( typeof ( T ) , true ) ;
245247
246248 // Don't convert integer types to decimal because SQL decimals have variable precision
247249 // Except for UInt64 for which there is no better choice
0 commit comments