添加项目文件。
This commit is contained in:
46
Atomx.Common/Entities/LocalizedProperty.cs
Normal file
46
Atomx.Common/Entities/LocalizedProperty.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Atomx.Common.Entities
|
||||
{
|
||||
/// <summary>
|
||||
/// 数据本地化属性值,适用于数据多语言
|
||||
/// </summary>
|
||||
[Table("LocalizedProperties")]
|
||||
public class LocalizedProperty
|
||||
{
|
||||
/// <summary>
|
||||
/// 数据ID
|
||||
/// </summary>
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||
[Key]
|
||||
public long Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 语言编码
|
||||
/// </summary>
|
||||
public int LanguageNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据类型
|
||||
/// </summary>
|
||||
public int Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据实体ID
|
||||
/// </summary>
|
||||
public long EntityId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据KEY
|
||||
/// </summary>
|
||||
[Column(TypeName = "varchar(255)")]
|
||||
public string Key { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 数据值
|
||||
/// </summary>
|
||||
[Column(TypeName = "text")]
|
||||
public string Value { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user