mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-20 02:29:24 +08:00
把有些东西写到极致
This commit is contained in:
14
OpenAuth.Repository/Core/Entity.cs
Normal file
14
OpenAuth.Repository/Core/Entity.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
|
||||
namespace OpenAuth.Repository.Domain
|
||||
{
|
||||
public abstract class Entity
|
||||
{
|
||||
public string Id { get; set; }
|
||||
|
||||
public Entity()
|
||||
{
|
||||
Id = Guid.NewGuid().ToString();
|
||||
}
|
||||
}
|
||||
}
|
30
OpenAuth.Repository/Core/TreeEntity.cs
Normal file
30
OpenAuth.Repository/Core/TreeEntity.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using OpenAuth.Repository.Domain;
|
||||
|
||||
namespace OpenAuth.Repository.Core
|
||||
{
|
||||
/// <summary>
|
||||
/// 树状结构实体
|
||||
/// </summary>
|
||||
public abstract class TreeEntity: Entity
|
||||
{
|
||||
/// <summary>
|
||||
/// 父节点名称
|
||||
/// </summary>
|
||||
public string ParentId { get; set; }
|
||||
/// <summary>
|
||||
/// 父节点名称
|
||||
/// </summary>
|
||||
public string ParentName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 节点语义ID
|
||||
/// </summary>
|
||||
public string CascadeId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user