Skip to content

Commit 98c9dd6

Browse files
committed
code clean up
1 parent 7288a4d commit 98c9dd6

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

SubSonic.Tests/DAL/SUT/DbTestCase.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
namespace SubSonic.Tests.DAL
88
{
99
using Extensions.Test;
10-
using Infrastructure;
1110
using Infrastructure.Schema;
12-
using SysLinq = System.Linq;
1311

1412
public class DbTestCase<TModel>
1513
: IDbTestCase

SubSonic/Infrastructure/Builders/DbSqlQueryBuilder/DbSqlQueryBuilderBuildMethods.cs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Linq.Expressions;
53
using System.Data;
64
using System.Data.Common;
5+
using System.Linq;
6+
using System.Linq.Expressions;
77
using System.Reflection;
88

99
namespace SubSonic.Infrastructure.Builders
1010
{
11+
using Infrastructure.Schema;
1112
using Linq;
1213
using Linq.Expressions;
13-
using Infrastructure.Schema;
14-
using SysLinq = System.Linq;
15-
using System.Diagnostics;
16-
using System.Net.Security;
1714

1815
public partial class DbSqlQueryBuilder
1916
{
@@ -166,7 +163,7 @@ public Expression BuildSelect(Expression expression, IDbEntityProperty property)
166163
{
167164
return new DbSelectExpression(
168165
select.QueryObject,
169-
typeof(SysLinq.IQueryable<>).MakeGenericType(property.PropertyType),
166+
typeof(IQueryable<>).MakeGenericType(property.PropertyType),
170167
select.From,
171168
select.Columns.Where(x => x.PropertyName.Equals(property.PropertyName, StringComparison.CurrentCulture)),
172169
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[]
270267
}
271268
}
272269

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)
274271
{
275272
if (property.IsNull())
276273
{

0 commit comments

Comments
 (0)