|
1 | 1 | using System; |
2 | 2 | using System.Collections.Generic; |
3 | | -using System.Linq; |
4 | | -using System.Linq.Expressions; |
5 | 3 | using System.Data; |
6 | 4 | using System.Data.Common; |
| 5 | +using System.Linq; |
| 6 | +using System.Linq.Expressions; |
7 | 7 | using System.Reflection; |
8 | 8 |
|
9 | 9 | namespace SubSonic.Infrastructure.Builders |
10 | 10 | { |
| 11 | + using Infrastructure.Schema; |
11 | 12 | using Linq; |
12 | 13 | using Linq.Expressions; |
13 | | - using Infrastructure.Schema; |
14 | | - using SysLinq = System.Linq; |
15 | | - using System.Diagnostics; |
16 | | - using System.Net.Security; |
17 | 14 |
|
18 | 15 | public partial class DbSqlQueryBuilder |
19 | 16 | { |
@@ -166,7 +163,7 @@ public Expression BuildSelect(Expression expression, IDbEntityProperty property) |
166 | 163 | { |
167 | 164 | return new DbSelectExpression( |
168 | 165 | select.QueryObject, |
169 | | - typeof(SysLinq.IQueryable<>).MakeGenericType(property.PropertyType), |
| 166 | + typeof(IQueryable<>).MakeGenericType(property.PropertyType), |
170 | 167 | select.From, |
171 | 168 | select.Columns.Where(x => x.PropertyName.Equals(property.PropertyName, StringComparison.CurrentCulture)), |
172 | 169 | select.Where, select.OrderBy, select.GroupBy, select.IsDistinct, select.Take, select.Skip, select.IsCte); |
@@ -270,7 +267,7 @@ public Expression BuildLambda(Expression body, LambdaType @call, params string[] |
270 | 267 | } |
271 | 268 | } |
272 | 269 |
|
273 | | - public Expression BuildLogicalIn(Expression body, PropertyInfo property, SysLinq.IQueryable queryable, DbGroupOperator @group) |
| 270 | + public Expression BuildLogicalIn(Expression body, PropertyInfo property, IQueryable queryable, DbGroupOperator @group) |
274 | 271 | { |
275 | 272 | if (property.IsNull()) |
276 | 273 | { |
|
0 commit comments