DataType refactoring - troubleshooting and fixing tests

This commit is contained in:
Stephan
2018-01-29 19:23:25 +01:00
parent e60a5a4a83
commit f5546ca870
38 changed files with 265 additions and 245 deletions

View File

@@ -53,6 +53,8 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
dataTypeSql.Where<NodeDto>(x => x.NodeObjectType == NodeObjectTypeId);
}
// fixme what shall we do when there is no editor for the editor alias?
// we should pass _editors to the factory - and then what?
var dtos = Database.Fetch<DataTypeDto>(dataTypeSql);
return dtos.Select(x => DataTypeFactory.BuildEntity(x, _editors.Value[x.EditorAlias])).ToArray();
}