Persistence - cleanup

This commit is contained in:
Stephan
2017-07-11 16:29:44 +02:00
parent 5fe38d6aaf
commit 9619066a50
37 changed files with 241 additions and 276 deletions

View File

@@ -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)