Skip to content

Commit 80258e5

Browse files
committed
#29 moved to partial file to reduce confusion between synchronous and asynchronous code.
1 parent 2d93954 commit 80258e5

File tree

3 files changed

+31
-23
lines changed

3 files changed

+31
-23
lines changed

SubSonic/Infrastructure/Builders/DbSqlQueryBuilder/DbSqlQueryBuilder.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
using System;
2-
using System.Linq.Expressions;
32
using System.Collections.Generic;
4-
using System.Reflection;
53
using System.Linq;
4+
using System.Linq.Expressions;
5+
using System.Reflection;
66

77
namespace SubSonic.Infrastructure.Builders
88
{
99
using Linq;
1010
using Linq.Expressions;
1111
using Logging;
12-
using Schema;
12+
using Schema;
1313

1414
public partial class DbSqlQueryBuilder
1515
: DbExpressionAccessor
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
using System.Linq.Expressions;
2+
using System.Threading.Tasks;
3+
4+
namespace SubSonic.Infrastructure.Builders
5+
{
6+
public partial class DbSqlQueryBuilder
7+
{
8+
public async Task<TResult> ExecuteAsync<TResult>(Expression expression)
9+
{
10+
if (expression is null)
11+
{
12+
throw Error.ArgumentNull(nameof(expression));
13+
}
14+
15+
throw Error.NotImplemented();
16+
}
17+
18+
public async Task<object> ExecuteAsync(Expression expression)
19+
{
20+
if (expression is null)
21+
{
22+
throw Error.ArgumentNull(nameof(expression));
23+
}
24+
25+
throw Error.NotImplemented();
26+
}
27+
}
28+
}

SubSonic/Infrastructure/Builders/DbSqlQueryBuilder/DbSqlQueryBuilderQueryProvider.cs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -171,26 +171,6 @@ public TResult Execute<TResult>(Expression expression)
171171
throw new NotSupportedException(expression.ToString());
172172
}
173173

174-
public async Task<TResult> ExecuteAsync<TResult>(Expression expression)
175-
{
176-
if (expression is null)
177-
{
178-
throw Error.ArgumentNull(nameof(expression));
179-
}
180-
181-
throw Error.NotImplemented();
182-
}
183-
184-
public async Task<object> ExecuteAsync(Expression expression)
185-
{
186-
if (expression is null)
187-
{
188-
throw Error.ArgumentNull(nameof(expression));
189-
}
190-
191-
throw Error.NotImplemented();
192-
}
193-
194174
public object Execute(Expression expression)
195175
{
196176
if (expression is null)

0 commit comments

Comments
 (0)