* Renaming AppData Models Builder mode * Renaming PureLive Models Builder mode to Runtime * ModelsBuilderAssembly attribute flags if models are "Live" or not * Updated ModelsMode names * Only add tag if it is not a pull request. Apparently this is not allowed when it is from a fork. * Revert "Only add tag if it is not a pull request. Apparently this is not allowed when it is from a fork." This reverts commit 92b33f3c Co-authored-by: Bjarke Berg <mail@bergmania.dk>
40 lines
1.3 KiB
C#
40 lines
1.3 KiB
C#
namespace Umbraco.Cms.Core.Configuration
|
|
{
|
|
/// <summary>
|
|
/// Defines the models generation modes.
|
|
/// </summary>
|
|
public enum ModelsMode
|
|
{
|
|
/// <summary>
|
|
/// Do not generate strongly typed models.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// This means that only IPublishedContent instances will be used.
|
|
/// </remarks>
|
|
Nothing = 0,
|
|
|
|
/// <summary>
|
|
/// Generate models in memory.
|
|
/// When: a content type change occurs.
|
|
/// </summary>
|
|
/// <remarks>The app does not restart. Models are available in views exclusively.</remarks>
|
|
InMemoryAuto,
|
|
|
|
/// <summary>
|
|
/// Generate models as *.cs files.
|
|
/// When: generation is triggered.
|
|
/// </summary>
|
|
/// <remarks>Generation can be triggered from the dashboard. The app does not restart.
|
|
/// Models are not compiled and thus are not available to the project.</remarks>
|
|
SourceCodeManual,
|
|
|
|
/// <summary>
|
|
/// Generate models as *.cs files.
|
|
/// When: a content type change occurs, or generation is triggered.
|
|
/// </summary>
|
|
/// <remarks>Generation can be triggered from the dashboard. The app does not restart.
|
|
/// Models are not compiled and thus are not available to the project.</remarks>
|
|
SourceCodeAuto
|
|
}
|
|
}
|