You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.4 KiB
55 lines
1.4 KiB
using System;
|
|
using System.ComponentModel;
|
|
|
|
namespace Znyc.Recruitment.Admin.Commons.Entitys
|
|
{
|
|
/// <summary>
|
|
/// 定义领域对象框架实体类的基类,系统默认主键为Id
|
|
/// </summary>
|
|
/// <typeparam name="TKey">实体主键类型</typeparam>
|
|
[Serializable]
|
|
public abstract class BaseEntity<TKey> : Entity, IBaseEntity<TKey>
|
|
{
|
|
/// <summary>
|
|
/// 创建者Id
|
|
/// </summary>
|
|
[Description("创建者Id")]
|
|
public TKey CreatedUserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 创建时间
|
|
/// </summary>
|
|
[Description("创建时间")]
|
|
public DateTime CreatedTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 是否删除
|
|
/// </summary>
|
|
[Description("是否删除")]
|
|
public bool IsDeleted { get; set; } = false;
|
|
|
|
/// <summary>
|
|
/// 修改者Id
|
|
/// </summary>
|
|
[Description("修改者Id")]
|
|
public TKey ModifiedUserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 修改时间
|
|
/// </summary>
|
|
[Description("修改时间")]
|
|
public DateTime ModifiedTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// Id
|
|
/// </summary>
|
|
[Description("Id")]
|
|
public TKey Id { get; set; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// </summary>
|
|
public class BaseEntity : BaseEntity<long>
|
|
{
|
|
}
|
|
}
|