Cleanup TreeEntityPath
This commit is contained in:
@@ -199,7 +199,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
|
||||
private IEnumerable<TreeEntityPath> PerformGetAllPaths(Guid objectType, Action<Sql<ISqlContext>> filter = null)
|
||||
{
|
||||
// NodeId is named Id on TreeEntityPath = use an alias
|
||||
var sql = Sql().Select<NodeDto>(x => Alias(x.NodeId, "Id"), x => x.Path).From<NodeDto>().Where<NodeDto>(x => x.NodeObjectType == objectType);
|
||||
var sql = Sql().Select<NodeDto>(x => Alias(x.NodeId, nameof(TreeEntityPath.Id)), x => x.Path).From<NodeDto>().Where<NodeDto>(x => x.NodeObjectType == objectType);
|
||||
filter?.Invoke(sql);
|
||||
return Database.Fetch<TreeEntityPath>(sql);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user