Feature: Configure Data Type conversion (#12374)

Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>
Co-authored-by: nikolajlauridsen <nikolajlauridsen@protonmail.ch>
Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
Co-authored-by: Niels Lyngsø <niels.lyngso@gmail.com>
This commit is contained in:
Mads Rasmussen
2022-05-24 09:01:32 +02:00
committed by GitHub
parent ab4909e6b9
commit 971f0d7984
42 changed files with 1687 additions and 673 deletions

View File

@@ -0,0 +1,8 @@
namespace Umbraco.Cms.Core.Configuration.Models;
public enum DataTypeChangeMode
{
True,
False,
FalseWithHelpText
}

View File

@@ -0,0 +1,15 @@
using System.ComponentModel;
namespace Umbraco.Cms.Core.Configuration.Models;
[UmbracoOptions(Constants.Configuration.ConfigDataTypes)]
public class DataTypesSettings
{
internal const DataTypeChangeMode StaticDataTypeChangeMode = DataTypeChangeMode.True;
/// <summary>
/// Gets or sets a value indicating if data types can be changed after they've been used.
/// </summary>
[DefaultValue(StaticDataTypeChangeMode)]
public DataTypeChangeMode CanBeChanged { get; set; } = StaticDataTypeChangeMode;
}