mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-04-05 17:38:01 +08:00
删除多余的类
This commit is contained in:
parent
127d86616f
commit
d9a609dad3
@ -1,31 +0,0 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace OpenAuth.Repository.Core
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键为字符串的实体基类,为系统默认的实体类型
|
||||
/// </summary>
|
||||
public class Entity : BaseEntity
|
||||
{
|
||||
[Browsable(false)]
|
||||
public string Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 判断主键是否为空,常用做判定操作是【添加】还是【编辑】
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override bool KeyIsNull()
|
||||
{
|
||||
return string.IsNullOrEmpty(Id);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 创建默认的主键值
|
||||
/// </summary>
|
||||
public override void GenerateDefaultKeyVal()
|
||||
{
|
||||
Id = Guid.NewGuid().ToString();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user