Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentBaseSave<TPersisted>

    A model representing a content item to be saved

    Inheritance
    System.Object
    EntityBasic
    ContentItemBasic
    ContentItemBasic<ContentPropertyBasic>
    Namespace: Umbraco.Cms.Core.Models.ContentEditing
    Assembly: Umbraco.Core.dll
    Syntax
    [DataContract(Name = "content", Namespace = "")]
    public abstract class ContentBaseSave<TPersisted> : ContentItemBasic<ContentPropertyBasic>, IContentProperties<ContentPropertyBasic>, IContentSave<TPersisted>, IHaveUploadedFiles where TPersisted : IContentBase
    Type Parameters
    Name Description
    TPersisted

    Constructors

    View Source

    ContentBaseSave()

    Declaration
    protected ContentBaseSave()

    Properties

    View Source

    Action

    The action to perform when saving this content item

    Declaration
    [DataMember(Name = "action", IsRequired = true)]
    [Required]
    public ContentSaveAction Action { get; set; }
    Property Value
    Type Description
    ContentSaveAction
    View Source

    PersistedContent

    Declaration
    [IgnoreDataMember]
    public TPersisted PersistedContent { get; set; }
    Property Value
    Type Description
    TPersisted
    View Source

    Properties

    Declaration
    [DataMember(Name = "properties")]
    public override IEnumerable<ContentPropertyBasic> Properties { get; set; }
    Property Value
    Type Description
    IEnumerable<ContentPropertyBasic>
    View Source

    PropertyCollectionDto

    The property DTO object is used to gather all required property data including data type information etc... for use with validation - used during inbound model binding

    Declaration
    [IgnoreDataMember]
    public ContentPropertyCollectionDto PropertyCollectionDto { get; set; }
    Property Value
    Type Description
    ContentPropertyCollectionDto
    Remarks

    We basically use this object to hydrate all required data from the database into one object so we can validate everything we need instead of having to look up all the data individually. This is not used for outgoing model information.

    View Source

    UploadedFiles

    Declaration
    [IgnoreDataMember]
    public List<ContentPropertyFile> UploadedFiles { get; }
    Property Value
    Type Description
    List<ContentPropertyFile>

    Explicit Interface Implementations

    View Source

    IContentSave<TPersisted>.PersistedContent

    The real persisted content object - used during inbound model binding

    Declaration
    [IgnoreDataMember]
    TPersisted IContentSave<TPersisted>.PersistedContent { get; set; }
    Returns
    Type Description
    TPersisted
    Remarks

    This is not used for outgoing model information.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • ContentBaseSave()
    • Properties
      • Action
      • PersistedContent
      • Properties
      • PropertyCollectionDto
      • UploadedFiles
    • Explicit Interface Implementations
      • IContentSave<TPersisted>.PersistedContent
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX