Permalink
Browse files

Remove AS JOIN Aliases which Oracle doesn't support

  • Loading branch information...
mythz committed Feb 11, 2019
1 parent 3960de1 commit c247404cdb42aead6230d44c8617300ab267b625
@@ -244,7 +244,7 @@ protected virtual SqlExpression<T> InternalJoin(string joinType, Expression join
FromExpression += joinFormat != null
? $" {joinType} {joinFormat(DialectProvider, joinDef, sqlExpr)}"
: joinAlias != null
? $" {joinType} {SqlTable(joinDef)} AS {DialectProvider.GetQuotedName(joinAlias.Alias)} {sqlExpr}"
? $" {joinType} {SqlTable(joinDef)} {DialectProvider.GetQuotedName(joinAlias.Alias)} {sqlExpr}"
: $" {joinType} {SqlTable(joinDef)} {sqlExpr}";


@@ -1315,7 +1315,7 @@ public string SelectExpression
public string FromExpression
{
get => string.IsNullOrEmpty(fromExpression)
? " \nFROM " + DialectProvider.GetQuotedTableName(modelDef) + (TableAlias != null ? " AS " + DialectProvider.GetQuotedName(TableAlias) : "")
? " \nFROM " + DialectProvider.GetQuotedTableName(modelDef) + (TableAlias != null ? " " + DialectProvider.GetQuotedName(TableAlias) : "")
: fromExpression;
set => fromExpression = value;
}

0 comments on commit c247404

Please sign in to comment.