From d9a609dad3c4b950fa07d728672c86e80a21e836 Mon Sep 17 00:00:00 2001 From: yubaolee Date: Sat, 13 Mar 2021 23:58:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99=E7=9A=84?= =?UTF-8?q?=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OpenAuth.Repository/Core/Entity.cs | 31 ------------------------------ 1 file changed, 31 deletions(-) delete mode 100644 OpenAuth.Repository/Core/Entity.cs diff --git a/OpenAuth.Repository/Core/Entity.cs b/OpenAuth.Repository/Core/Entity.cs deleted file mode 100644 index 3b1488f1..00000000 --- a/OpenAuth.Repository/Core/Entity.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System; -using System.ComponentModel; - -namespace OpenAuth.Repository.Core -{ - /// - /// 主键为字符串的实体基类,为系统默认的实体类型 - /// - public class Entity : BaseEntity - { - [Browsable(false)] - public string Id { get; set; } - - /// - /// 判断主键是否为空,常用做判定操作是【添加】还是【编辑】 - /// - /// - public override bool KeyIsNull() - { - return string.IsNullOrEmpty(Id); - } - - /// - /// 创建默认的主键值 - /// - public override void GenerateDefaultKeyVal() - { - Id = Guid.NewGuid().ToString(); - } - } -}