Add LeafInput
Add EntityFramework
This commit is contained in:
@@ -8,7 +8,7 @@ using Umbraco.Web;
|
||||
using Umbraco.ModelsBuilder;
|
||||
using Umbraco.ModelsBuilder.Umbraco;
|
||||
[assembly: PureLiveAssembly]
|
||||
[assembly:ModelsBuilderAssembly(PureLive = true, SourceHash = "508a57e7748cbe2")]
|
||||
[assembly:ModelsBuilderAssembly(PureLive = true, SourceHash = "a97af64e5fffa72c")]
|
||||
[assembly:System.Reflection.AssemblyVersion("0.0.0.1")]
|
||||
|
||||
|
||||
@@ -260,41 +260,6 @@ namespace Umbraco.Web.PublishedContentModels
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Leaf Input</summary>
|
||||
[PublishedContentModel("TextPage1")]
|
||||
public partial class TextPage1 : PublishedContentModel
|
||||
{
|
||||
#pragma warning disable 0109 // new is redundant
|
||||
public new const string ModelTypeAlias = "TextPage1";
|
||||
public new const PublishedItemType ModelItemType = PublishedItemType.Content;
|
||||
#pragma warning restore 0109
|
||||
|
||||
public TextPage1(IPublishedContent content)
|
||||
: base(content)
|
||||
{ }
|
||||
|
||||
#pragma warning disable 0109 // new is redundant
|
||||
public new static PublishedContentType GetModelContentType()
|
||||
{
|
||||
return PublishedContentType.Get(ModelItemType, ModelTypeAlias);
|
||||
}
|
||||
#pragma warning restore 0109
|
||||
|
||||
public static PublishedPropertyType GetModelPropertyType<TValue>(Expression<Func<TextPage1, TValue>> selector)
|
||||
{
|
||||
return PublishedContentModelUtility.GetModelPropertyType(GetModelContentType(), selector);
|
||||
}
|
||||
|
||||
///<summary>
|
||||
/// Content
|
||||
///</summary>
|
||||
[ImplementPropertyType("content")]
|
||||
public Newtonsoft.Json.Linq.JToken Content
|
||||
{
|
||||
get { return this.GetPropertyValue<Newtonsoft.Json.Linq.JToken>("content"); }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Folder</summary>
|
||||
[PublishedContentModel("Folder")]
|
||||
public partial class Folder : PublishedContentModel
|
||||
|
||||
@@ -19,7 +19,7 @@ using Umbraco.ModelsBuilder;
|
||||
using Umbraco.ModelsBuilder.Umbraco;
|
||||
|
||||
[assembly: PureLiveAssembly]
|
||||
[assembly:ModelsBuilderAssembly(PureLive = true, SourceHash = "508a57e7748cbe2")]
|
||||
[assembly:ModelsBuilderAssembly(PureLive = true, SourceHash = "a97af64e5fffa72c")]
|
||||
[assembly:System.Reflection.AssemblyVersion("0.0.0.2")]
|
||||
|
||||
namespace Umbraco.Web.PublishedContentModels
|
||||
@@ -244,41 +244,6 @@ namespace Umbraco.Web.PublishedContentModels
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Leaf Input</summary>
|
||||
[PublishedContentModel("TextPage1")]
|
||||
public partial class TextPage1 : PublishedContentModel
|
||||
{
|
||||
#pragma warning disable 0109 // new is redundant
|
||||
public new const string ModelTypeAlias = "TextPage1";
|
||||
public new const PublishedItemType ModelItemType = PublishedItemType.Content;
|
||||
#pragma warning restore 0109
|
||||
|
||||
public TextPage1(IPublishedContent content)
|
||||
: base(content)
|
||||
{ }
|
||||
|
||||
#pragma warning disable 0109 // new is redundant
|
||||
public new static PublishedContentType GetModelContentType()
|
||||
{
|
||||
return PublishedContentType.Get(ModelItemType, ModelTypeAlias);
|
||||
}
|
||||
#pragma warning restore 0109
|
||||
|
||||
public static PublishedPropertyType GetModelPropertyType<TValue>(Expression<Func<TextPage1, TValue>> selector)
|
||||
{
|
||||
return PublishedContentModelUtility.GetModelPropertyType(GetModelContentType(), selector);
|
||||
}
|
||||
|
||||
///<summary>
|
||||
/// Content
|
||||
///</summary>
|
||||
[ImplementPropertyType("content")]
|
||||
public Newtonsoft.Json.Linq.JToken Content
|
||||
{
|
||||
get { return this.GetPropertyValue<Newtonsoft.Json.Linq.JToken>("content"); }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Folder</summary>
|
||||
[PublishedContentModel("Folder")]
|
||||
public partial class Folder : PublishedContentModel
|
||||
|
||||
@@ -1 +1 @@
|
||||
508a57e7748cbe2
|
||||
a97af64e5fffa72c
|
||||
Reference in New Issue
Block a user