Skip to content

Commit ea0f5ea

Browse files
fredericDelaportebahusoid
authored andcommitted
Review changes
1 parent c661485 commit ea0f5ea

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/NHibernate/SqlCommand/SqlStringHelper.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,12 @@ public static SqlString[] Add(SqlString[] x, string sep, SqlString[] y)
5959
return result;
6060
}
6161

62-
63-
//Consider using CriterionUtil.GetColumn... methods instead
62+
/// <summary>
63+
/// Removes the <c>as someColumnAlias</c> clause from a <c>SqlString</c> representing a column expression.
64+
/// Consider using <c>CriterionUtil.GetColumn...</c> methods instead.
65+
/// </summary>
66+
/// <param name="sql">The <c>SqlString</c> representing a column expression which might be aliased.</param>
67+
/// <returns><paramref name="sql" /> if it was not aliased, otherwise an un-aliased <c>SqlString</c> representing the column.</returns>
6468
public static SqlString RemoveAsAliasesFromSql(SqlString sql)
6569
{
6670
int index = sql.LastIndexOfCaseInsensitive(" as ");

0 commit comments

Comments
 (0)