init commit
This commit is contained in:
25
20220330_Vote/Ewide.RoadFlow/Entity/BaseEntity.cs
Normal file
25
20220330_Vote/Ewide.RoadFlow/Entity/BaseEntity.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace RoadFlow.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// 基础实体类
|
||||
/// </summary>
|
||||
[DataContract]
|
||||
public abstract partial class BaseEntity
|
||||
{
|
||||
[DataMember]
|
||||
[Column("Id")]
|
||||
[Display(Name = "Id")]
|
||||
[Key]
|
||||
[SqlSugar.SugarColumn(IsNullable =false,IsPrimaryKey =true)]
|
||||
public string Id { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user