Search Results for

    Show / Hide Table of Contents
    View Source

    Class ModelsBuilderSettings

    Typed configuration options for models builder settings.

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Configuration.Models
    Assembly: Umbraco.Core.dll
    Syntax
    public class ModelsBuilderSettings

    Properties

    View Source

    AcceptUnsafeModelsDirectory

    Gets or sets a value indicating whether to accept an unsafe value for ModelsDirectory.

    Declaration
    public bool AcceptUnsafeModelsDirectory { get; set; }
    Property Value
    Type Description
    System.Boolean
    Remarks

    An unsafe value is an absolute path, or a relative path pointing outside of the website root.

    View Source

    DebugLevel

    Gets or sets a value indicating the debug log level.

    Declaration
    public int DebugLevel { get; set; }
    Property Value
    Type Description
    System.Int32
    Remarks

    0 means minimal (safe on live site), anything else means more and more details (maybe not safe).

    View Source

    FlagOutOfDateModels

    Gets or sets a value indicating whether we should flag out-of-date models.

    Declaration
    public bool FlagOutOfDateModels { get; set; }
    Property Value
    Type Description
    System.Boolean
    Remarks

    Models become out-of-date when data types or content types are updated. When this setting is activated the ~/umbraco/models/PureLive/ood.txt file is then created. When models are generated through the dashboard, the files is cleared. Default value is false.

    View Source

    ModelsDirectory

    Gets or sets a value for the models directory.

    Declaration
    public string ModelsDirectory { get; set; }
    Property Value
    Type Description
    System.String
    Remarks

    Default is ~/umbraco/models but that can be changed.

    View Source

    ModelsMode

    Gets or sets a value for the models mode.

    Declaration
    public ModelsMode ModelsMode { get; set; }
    Property Value
    Type Description
    ModelsMode
    View Source

    ModelsNamespace

    Gets or sets a value for models namespace.

    Declaration
    public string ModelsNamespace { get; set; }
    Property Value
    Type Description
    System.String
    Remarks

    That value could be overriden by other (attribute in user's code...). Return default if no value was supplied.

    • Improve this Doc
    • View Source
    In This Article
    • Properties
      • AcceptUnsafeModelsDirectory
      • DebugLevel
      • FlagOutOfDateModels
      • ModelsDirectory
      • ModelsMode
      • ModelsNamespace
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX