C# Класс Felinesoft.UmbracoCodeFirst.Content.Factories.ChildContentFactory

Creates AutoContent which specifies a parent document
Наследование: ContentFactoryBase
Показать файл Открыть проект

Открытые методы

Метод Описание
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