Resharper templates for EPiServer properties

I've created these Resharper templates for EPiServer properties. Hopefully they'll save you some coding time :)

epibool

[Display(
	GroupName = SystemTabNames.Content,
	Order = $ORDER$)]
public virtual bool $NAME$ { get; set; }

epicategorylist

[Display(
	GroupName = SystemTabNames.Content,
	Order = $ORDER$)]
public virtual CategoryList $NAME$ { get; set; }

epicontentarea

[Display(
	GroupName = SystemTabNames.Content,
	Order = $ORDER$)]
public virtual ContentArea $NAME$ { get; set; }

epidate

[Display(
	GroupName = SystemTabNames.Content,
	Order = $ORDER$)]
public virtual DateTime $NAME$ { get; set; }

epidouble

[Display(
	GroupName = SystemTabNames.Content,
	Order = $ORDER$)]
public virtual double $NAME$ { get; set; }

epifile

[Display(
	GroupName = SystemTabNames.Content,
	Order = $ORDER$)]
[UIHinth(UIHint.Document)]
public virtual Url $NAME$ { get; set; }

epihtml

[Display(
	GroupName = SystemTabNames.Content,
	Order = $ORDER$)]
public virtual XhtmlString $NAME$ { get; set; }

epiimage

[Display(
	GroupName = SystemTabNames.Content,
	Order = $ORDER$)]
[UIHint(UIHint.Image)]
public virtual Url $NAME$ { get; set; }

epiint

[Display(
	GroupName = SystemTabNames.Content,
	Order = $ORDER$)]
public virtual int $NAME$ { get; set; }

epilinkcollection

[Display(
	GroupName = SystemTabNames.Content,
	Order = $ORDER$)]
public virtual LinkItemCollection $NAME$ { get; set; }

epipage

[Display(
	GroupName = SystemTabNames.Content,
	Order = $ORDER$)]
public virtual PageReference $NAME$ { get; set; }

epipagetype

[Display(
	GroupName = SystemTabNames.Content,
	Order = $ORDER$)]
public virtual $PAGE_TYPE$ $NAME$ { get; set; }

epistring

[Display(
	GroupName = SystemTabNames.Content,
	Order = $ORDER$)]
public virtual string $NAME$ { get; set; }

epitextarea

[Display(
	GroupName = SystemTabNames.Content,
	Order = $ORDER$)]
[UIHint(UIHint.Textarea)]
public virtual string $NAME$ { get; set; }

epiurl

[Display(
	GroupName = SystemTabNames.Content,
	Order = $ORDER$)]
[BackingType(typeof(PropertyUrl))]
public virtual Url $NAME$ { get; set; }

epixform

[Display(
	GroupName = SystemTabNames.Content,
	Order = $ORDER$)]
public virtual XForm $NAME$ { get; set; }

You can download templates from this link: link

Installation instructions

In Visual Studio, click on Resharper / Templates Explorer

In Templates Explorer, select C# and click the Import button:

Then select your DotSettings file and that's it.

Happy coding!

comments powered by Disqus