Adding dynamic Content property to the Content Item class for easily accessing Parts and Fields. Thanks Sébastien! :)

This commit is contained in:
Lombiq 2015-11-26 22:11:40 +01:00 committed by Benedek Farkas
parent ab12ff6a05
commit af76305088

View File

@ -15,6 +15,8 @@ namespace Orchard.ContentManagement {
ContentItem IContent.ContentItem { get { return this; } }
public dynamic Content { get { return (dynamic)this; } }
public int Id { get { return Record == null ? 0 : Record.Id; } }
public int Version { get { return VersionRecord == null ? 0 : VersionRecord.Number; } }