U4-7038 - IPublishedContentWithKey for contents, members

This commit is contained in:
Stephan
2015-08-31 18:59:51 +02:00
parent 62afc06f56
commit 7848ea5ec0
16 changed files with 128 additions and 7 deletions

View File

@@ -0,0 +1,13 @@
using System;
namespace Umbraco.Core.Models.PublishedContent
{
public abstract class PublishedContentWithKeyModel : PublishedContentModel, IPublishedContentWithKey
{
protected PublishedContentWithKeyModel(IPublishedContentWithKey content)
: base (content)
{ }
public Guid Key { get { return ((IPublishedContentWithKey) Content).Key; } }
}
}