DynamicDocument with performance enhancements, should perform much quicker for multiple requests for the same property now.
21 lines
818 B
C#
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);
|
|
}
|
|
}
|
|
} |