Created
July 25, 2014 13:49
-
-
Save anonymous/a8ac94a682f415b6fbcd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[SitecoreType(TemplateId = "{GUID HERE}")] | |
public class Foo : BasePage | |
{ | |
[SitecoreField(FieldId = "GUID HERE")] | |
public string FooBar { get; set; } | |
} | |
[SitecoreType(TemplateId = "GUID HERE")] | |
public class BasePage : BaseItem | |
{ | |
[SitecoreField(FieldId = "{GUID HERE}")] | |
public bool IncludeInSitemap { get; set; } | |
public string PageTitle { get; set; } | |
} | |
public class BaseItem | |
{ | |
[SitecoreId] | |
public Guid Id { get; set; } | |
[SitecoreInfo(SitecoreInfoType.Path)] | |
public string Path { get; set; } | |
[SitecoreField("__Created")] | |
public string Created { get; set; } | |
[SitecoreInfo(SitecoreInfoType.Name)] | |
public string ItemName { get; set; } | |
[SitecoreInfo(SitecoreInfoType.DisplayName)] | |
public string DisplayName { get; set; } | |
[SitecoreField("__Renderings", ReadOnly = true)] | |
public string Renderings { get; set; } | |
[SitecoreField("__Updated")] | |
public DateTime Updated { get; set; } | |
[SitecoreInfo(SitecoreInfoType.Language)] | |
public Language Language { get; set; } | |
[SitecoreInfo(SitecoreInfoType.TemplateName)] | |
public string TemplateName { get; set; } | |
[SitecoreInfo(SitecoreInfoType.Url)] | |
public string Url { get; set; } | |
[SitecoreInfo(SitecoreInfoType.Version)] | |
public int Version { get; set; } | |
[SitecoreInfo(SitecoreInfoType.TemplateId)] | |
public Guid TemplateId { get; set; } | |
[SitecoreField("__Workflow")] | |
public Guid? Workflow { get; set; } | |
[SitecoreField("__Workflow state")] | |
public Guid? WorkflowState { get; set; } | |
[SitecoreField("__Sortorder")] | |
public int SortOrder { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment