Files
Umbraco-CMS/src/Umbraco.Web/DefaultDynamicDocumentDataSource.cs
Shannon Deminick e24e3af955 Added DynamicDocument tests for getting a converted value for a custom PropertyEditorValueConverter, updated
DynamicDocument with performance enhancements, should perform much quicker for multiple requests for the same property now.
2012-08-20 09:11:14 +06:00

21 lines
818 B
C#

using System;
using System.Collections.Generic;
using Umbraco.Core.Dynamics;
using umbraco.cms.businesslogic;
namespace Umbraco.Web
{
/// <summary>
/// This exists only because we want Dynamics in the Core project but DynamicNode has references to ContentType to run some queries
/// and currently the business logic part of Umbraco is still in the legacy project and we don't want to move that to the core so in the
/// meantime until the new APIs are made, we need to have this data source in place with a resolver which is set in the web project.
/// </summary>
internal class DefaultDynamicDocumentDataSource : IDynamicDocumentDataSource
{
public Guid GetDataType(string docTypeAlias, string propertyAlias)
{
return ContentType.GetDataType(docTypeAlias, propertyAlias);
}
}
}