C# (CSharp) Felinesoft.UmbracoCodeFirst.Content.Factories 네임스페이스

클래스들

이름 설명
ChildContentFactory Creates AutoContent which specifies a parent document
ContentFactoryBase

Creates an instance of a document type using values supplied as a strongly-typed model.

The RootContentFactory and ChildContentFactory[T] implementations work with the IAutoContent interface and the [AutoContent] attribute to place the content creation logic into methods on the code-first document type model. The recommended route to content generation is to implement IAutoContent on the document type model and apply an [AutoContent] attribute to the document type model.

Implementing a custom factory may be required for some scenarios such as creating a collection of content items or creating a nested structure in a single factory. A custom factory type can be specified using a [ContentFactory] attribute.

RootContentFactory Creates AutoContent which does not specify a parent document