47 lines
1.6 KiB
C#
47 lines
1.6 KiB
C#
using System;
|
||
using System.Collections.Generic;
|
||
using Volo.Abp.Domain.Entities.Auditing;
|
||
|
||
namespace Erp.Settings.Entities;
|
||
|
||
public class SettingDefinition : FullAuditedEntity<Guid>
|
||
{
|
||
public string Code { get; set; }
|
||
public string NameKey { get; set; }
|
||
public string DescriptionKey { get; set; }
|
||
public string DefaultValue { get; set; }
|
||
|
||
/// <summary>
|
||
/// Can clients see this setting and it's value.
|
||
/// It maybe dangerous for some settings to be visible to clients (such as an email server password).
|
||
/// Default: false.
|
||
/// </summary>
|
||
public bool IsVisibleToClients { get; set; }
|
||
|
||
/// <summary>
|
||
/// A list of allowed providers to get/set value of this setting.
|
||
/// An empty list indicates that all providers are allowed.
|
||
/// </summary>
|
||
public string Providers { get; set; }
|
||
|
||
/// <summary>
|
||
/// Is this setting inherited from parent scopes.
|
||
/// Value is inherited from other providers or not
|
||
/// Default: True.
|
||
/// </summary>
|
||
public bool IsInherited { get; set; }
|
||
|
||
public bool IsEncrypted { get; set; }
|
||
|
||
public string MainGroupKey { get; set; }
|
||
public string SubGroupKey { get; set; }
|
||
public string RequiredPermissionName { get; set; } // Permission: Tema, Setting: Tema,
|
||
public string DataType { get; set; } //text (default), number, checkbox, select (select options)
|
||
|
||
//key: vt'ye kaydedilecek değer,
|
||
//value: ILocalizableString, kullanıcıya gösterilecek değer
|
||
public Dictionary<string, string> SelectOptions { get; set; }
|
||
|
||
public int Order { get; set; }
|
||
}
|
||
|