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(); - } - } -}