Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 8bb9203

Browse files
committed
Merge pull request #273 from m-andrew-albright/master
JoinSqlBuilder now works with Alias'ed properties.
2 parents 278eb48 + 4a0ca31 commit 8bb9203

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ServiceStack.OrmLite/JoinSqlBuilder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ private List<string> ColumnList<T>(bool withTablePrefix = true)
4848
foreach (var item in pocoType.GetModelDefinition().FieldDefinitions)
4949
{
5050
if (withTablePrefix)
51-
result.Add(string.Format("{0}.{1}", OrmLiteConfig.DialectProvider.GetQuotedTableName(tableName), OrmLiteConfig.DialectProvider.GetQuotedColumnName(item.Name)));
51+
result.Add(string.Format("{0}.{1}", OrmLiteConfig.DialectProvider.GetQuotedTableName(tableName), OrmLiteConfig.DialectProvider.GetQuotedColumnName(item.FieldName)));
5252
else
53-
result.Add(string.Format("{0}", OrmLiteConfig.DialectProvider.GetQuotedColumnName(item.Name)));
53+
result.Add(string.Format("{0}", OrmLiteConfig.DialectProvider.GetQuotedColumnName(item.FieldName)));
5454
}
5555
return result;
5656
}

0 commit comments

Comments
 (0)