Persistence - cleanup
This commit is contained in:
@@ -159,7 +159,7 @@ namespace Umbraco.Core.Services
|
||||
using (var uow = UowProvider.CreateUnitOfWork(readOnly: true))
|
||||
{
|
||||
var repository = uow.CreateRepository<IDictionaryRepository>();
|
||||
var query = repository.QueryT.Where(x => x.ParentId == parentId);
|
||||
var query = uow.Query<IDictionaryItem>().Where(x => x.ParentId == parentId);
|
||||
var items = repository.GetByQuery(query).ToArray();
|
||||
//ensure the lazy Language callback is assigned
|
||||
foreach (var item in items)
|
||||
@@ -195,7 +195,7 @@ namespace Umbraco.Core.Services
|
||||
using (var uow = UowProvider.CreateUnitOfWork(readOnly: true))
|
||||
{
|
||||
var repository = uow.CreateRepository<IDictionaryRepository>();
|
||||
var query = repository.QueryT.Where(x => x.ParentId == null);
|
||||
var query = uow.Query<IDictionaryItem>().Where(x => x.ParentId == null);
|
||||
var items = repository.GetByQuery(query).ToArray();
|
||||
//ensure the lazy Language callback is assigned
|
||||
foreach (var item in items)
|
||||
|
||||
Reference in New Issue
Block a user