Skip to content

Commit 895b92c

Browse files
fredericDelaportebahusoid
authored andcommitted
Review changes
1 parent 0e81f7c commit 895b92c

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
@@ -40,8 +40,12 @@ public static SqlString[] Add(SqlString[] x, string sep, SqlString[] y)
4040
return result;
4141
}
4242

43-
44-
//Consider using CriterionUtil.GetColumn... methods instead
43+
/// <summary>
44+
/// Removes the <c>as someColumnAlias</c> clause from a <c>SqlString</c> representing a column expression.
45+
/// Consider using <c>CriterionUtil.GetColumn...</c> methods instead.
46+
/// </summary>
47+
/// <param name="sql">The <c>SqlString</c> representing a column expression which might be aliased.</param>
48+
/// <returns><paramref name="sql" /> if it was not aliased, otherwise an un-aliased <c>SqlString</c> representing the column.</returns>
4549
public static SqlString RemoveAsAliasesFromSql(SqlString sql)
4650
{
4751
int index = sql.LastIndexOfCaseInsensitive(" as ");

0 commit comments

Comments
 (0)