Skip to content

Commit

Permalink
Remove an assert which Smit doesn't like
Browse files Browse the repository at this point in the history
  • Loading branch information
roji committed Nov 24, 2020
1 parent acc98d2 commit 3f4e5a2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/EFCore.Relational/Query/QuerySqlGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -329,11 +329,9 @@ protected override Expression VisitTableValuedFunction(TableValuedFunctionExpres
protected override Expression VisitColumn(ColumnExpression columnExpression)
{
Check.NotNull(columnExpression, nameof(columnExpression));
Check.DebugAssert(columnExpression.Table.Alias is not null,
$"{nameof(columnExpression.Table.Alias)} is null on {nameof(columnExpression)}.{nameof(columnExpression.Table)}");

_relationalCommandBuilder
.Append(_sqlGenerationHelper.DelimitIdentifier(columnExpression.Table.Alias))
.Append(_sqlGenerationHelper.DelimitIdentifier(columnExpression.Table.Alias!))
.Append(".")
.Append(_sqlGenerationHelper.DelimitIdentifier(columnExpression.Name));

Expand Down

0 comments on commit 3f4e5a2

Please sign in to comment.