Skip to content

Commit f133fb9

Browse files
author
Harish
committed
add type constraint
1 parent 47d63be commit f133fb9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

QueryBuilder/Query.Select.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public Query SelectMax(string column, Func<Query, Query> filter = null)
119119
return SelectAggregate("max", column, filter);
120120
}
121121

122-
public Query Select<T>() {
122+
public Query Select<T>() where T : class {
123123
var properties = typeof(T).GetProperties();
124124
var columns = new List<string>();
125125
foreach (var property in properties) {

0 commit comments

Comments
 (0)