Class ModelsBuilderSettings
Typed configuration options for models builder settings.
Inheritance
Namespace: Umbraco.Cms.Core.Configuration.Models
Assembly: Umbraco.Core.dll
Syntax
public class ModelsBuilderSettings
Properties
View SourceAcceptUnsafeModelsDirectory
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.
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).
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
.
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.
ModelsMode
Gets or sets a value for the models mode.
Declaration
public ModelsMode ModelsMode { get; set; }
Property Value
Type | Description |
---|---|
ModelsMode |
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.