Skip to content

Commit 0771f9c

Browse files
committed
Split only once
1 parent b3f3543 commit 0771f9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NHibernate/Persister/Entity/SubqueryPropertyMapping.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public SubqueryPropertyMapping(IType type, SelectClause selectClause)
3333
var key = scalarExpression.Alias;
3434
if (string.IsNullOrEmpty(key) && scalarExpression is DotNode dotNode)
3535
{
36-
key = dotNode.PropertyPath.Split(StringHelper.Dot).Last();
36+
StringHelper.ParsePathAndPropertyName(dotNode.PropertyPath, out _, out key);
3737
}
3838

3939
if (key == null)

0 commit comments

Comments
 (0)