mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-27 05:02:50 +08:00
23 lines
484 B
C#
23 lines
484 B
C#
//using FreeSql.DataAnnotations;
|
|
using FreeSql.DataAnnotations;
|
|
using System;
|
|
|
|
namespace FreeSql.Site.Entity
|
|
{
|
|
public class BaseEntity
|
|
{
|
|
[Column(IsIdentity = true, IsPrimary = true)]
|
|
public int ID { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// 状态
|
|
/// </summary>
|
|
public int Status { get; set; } = 1;
|
|
|
|
public DateTime? CreateDt { get; set; } = DateTime.Now;
|
|
|
|
public string CreateBy { get; set; } = "admin";
|
|
|
|
}
|
|
}
|