C# 클래스 Felinesoft.UmbracoCodeFirst.Content.Factories.ChildContentFactory

Creates AutoContent which specifies a parent document
상속: ContentFactoryBase
파일 보기 프로젝트 열기: DanMannMann/UmbracoCodeFirst

공개 메소드들

메소드 설명
ChildContentFactory ( DocumentTypeBase values, Type parentDocType ) : System

Creates AutoContent which specifies a parent document

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

메소드 상세

ChildContentFactory() 공개 메소드

Creates AutoContent which specifies a parent document
public ChildContentFactory ( DocumentTypeBase values, Type parentDocType ) : System
values DocumentTypeBase The document property values to use
parentDocType System.Type The type of the parent document
리턴 System

GetIfExists() 공개 메소드

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

GetOrCreate() 공개 메소드

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

GetPublishedIfExists() 공개 메소드

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