C# Class Felinesoft.UmbracoCodeFirst.Content.Factories.RootContentFactory

Creates AutoContent which does not specify a parent document
Inheritance: ContentFactoryBase
Show file Open project: DanMannMann/UmbracoCodeFirst

Public Methods

Method Description
GetIfExists ( ) : Umbraco.Core.Models.IContent

Gets the IContent instance if it exists, otherwise returns null

GetOrCreate ( ) : Umbraco.Core.Models.IContent

Gets the IContent instance if it already exists, otherwise creates it

GetPublishedIfExists ( ) : IPublishedContent

Gets the IPublishedContent instance if it exists, otherwise returns null

RootContentFactory ( DocumentTypeBase values ) : System

Creates AutoContent which does not specify a parent document

Method Details

GetIfExists() public method

Gets the IContent instance if it exists, otherwise returns null
public GetIfExists ( ) : Umbraco.Core.Models.IContent
return Umbraco.Core.Models.IContent

GetOrCreate() public method

Gets the IContent instance if it already exists, otherwise creates it
public GetOrCreate ( ) : Umbraco.Core.Models.IContent
return Umbraco.Core.Models.IContent

GetPublishedIfExists() public method

Gets the IPublishedContent instance if it exists, otherwise returns null
public GetPublishedIfExists ( ) : IPublishedContent
return IPublishedContent

RootContentFactory() public method

Creates AutoContent which does not specify a parent document
public RootContentFactory ( DocumentTypeBase values ) : System
values DocumentTypeBase The document property values to use
return System