Merge pull request #6084 from OrchardCMS/1.9.x

Adding dynamic Content property to the Content Item class
This commit is contained in:
Benedek Farkas 2015-11-26 22:15:34 +01:00
commit fa0c93724e

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; } }