erp-platform/api/modules/Kurs.Settings/Kurs.Settings.Domain/Entities/SettingDefinition.cs
Sedat ÖZTÜRK e1a9562b22 init project
2025-05-06 09:45:49 +03:00

46 lines
1.6 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
using Volo.Abp.Domain.Entities.Auditing;
namespace Kurs.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 List<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; }
}