PersistenceManager.Default was obsoleted, replaced calls with ExecutionContext.DatabasePersistence

This commit is contained in:
leekelleher
2014-09-02 13:20:29 +01:00
committed by kjac
parent 7e7a4aff58
commit cd95404a08
@@ -77,7 +77,7 @@ namespace Archetype.Courier.DataResolvers
if (propertyData != null && propertyData.Value != null)
{
// just look at the amount of dancing around we have to do in order to fake a `PublishedPropertyType`?!
var dataTypeId = PersistenceManager.Default.GetNodeId(propertyData.DataType, NodeObjectTypes.DataType);
var dataTypeId = ExecutionContext.DatabasePersistence.GetNodeId(propertyData.DataType, NodeObjectTypes.DataType);
var fakePropertyType = this.CreateDummyPropertyType(dataTypeId, this.EditorAlias);
var converter = new ArchetypeValueConverter();
@@ -103,7 +103,7 @@ namespace Archetype.Courier.DataResolvers
new ContentProperty
{
Alias = property.Alias,
DataType = PersistenceManager.Default.GetUniqueId(property.DataTypeId, NodeObjectTypes.DataType),
DataType = ExecutionContext.DatabasePersistence.GetUniqueId(property.DataTypeId, NodeObjectTypes.DataType),
PropertyEditorAlias = property.PropertyEditorAlias,
Value = property.Value
}