Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
93 lines (70 sloc) 2.77 KB
<#@ template language="C#" #>
<#@ assembly name="System.Core" #>
<#@ include file="Helpers.tt" #>
<#@ include file="StringExtensions.tt" #>
<#@ include file="GeneralExtensions.tt" #>
<#@ include file="Inflector.tt" #>
<#@ import namespace="System" #>
<#@ import namespace="System.Linq" #>
<#@ import namespace="System.Collections.Generic" #>
<#@ import namespace="HedgehogDevelopment.SitecoreProject.VSIP.CodeGeneration.Models" #>
<#@ parameter name="Model" type="HedgehogDevelopment.SitecoreProject.VSIP.CodeGeneration.Models.ProjectHeader" #>
<#@ parameter name="DefaultNamespace" type="System.String" #>
#pragma warning disable 1591
#pragma warning disable 0108
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by Team Development for Sitecore.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Glass.Mapper.Sc.Configuration.Attributes;
using Glass.Mapper.Sc.Configuration;
using Glass.Mapper.Sc.Fields;
using Sitecore.Globalization;
<#
// Calculate the top leve namespace as configured in the target project and
// base namespace as defined in the TDS project
string fullNamespace = JoinNamespaces(DefaultNamespace, Model.BaseNamespace);
#>
namespace <#=fullNamespace #>
{
public partial interface IGlassBase{
[SitecoreId]
Guid Id{ get; set; }
[SitecoreInfo(SitecoreInfoType.Language)]
Language Language{ get; set; }
[SitecoreInfo(SitecoreInfoType.Version)]
int Version { get; set; }
[SitecoreInfo(SitecoreInfoType.Url)]
string Url { get; set; }
[SitecoreInfo(SitecoreInfoType.Name)]
string Name { get; set; }
[SitecoreField("__Sortorder")]
int Sortorder { get; set; }
[SitecoreInfo(SitecoreInfoType.BaseTemplateIds)]
IEnumerable<Guid> BaseTemplateIds { get; set; }
[SitecoreInfo(SitecoreInfoType.ContentPath)]
string ContentPath { get; set; }
[SitecoreInfo(SitecoreInfoType.DisplayName)]
string DisplayName { get; set; }
[SitecoreInfo(SitecoreInfoType.FullPath)]
string FullPath { get; set; }
[SitecoreInfo(SitecoreInfoType.Path)]
string Path { get; set; }
[SitecoreInfo(SitecoreInfoType.TemplateId)]
Guid TemplateId { get; set; }
[SitecoreInfo(SitecoreInfoType.TemplateName)]
string TemplateName { get; set; }
[SitecoreChildren(InferType = true)]
IEnumerable<IGlassBase> Children { get; set; }
[SitecoreParent(InferType = true)]
IGlassBase Parent { get; set; }
}
}