去掉IDE1006警告,修改BaseEntity
This commit is contained in:
@@ -8,13 +8,13 @@ using SqlSugar;
|
||||
|
||||
namespace Tnb.Common.Contracts
|
||||
{
|
||||
public class BaseEntity<TKey> : IEntity<TKey> where TKey : IEquatable<TKey>
|
||||
public class BaseEntity<TKey> : IEntity where TKey : IEquatable<TKey>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置 编号.
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "id", ColumnDescription = "主键", IsPrimaryKey = true)]
|
||||
public TKey Id { get; set; }
|
||||
public TKey id { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -3,10 +3,15 @@
|
||||
/// <summary>
|
||||
/// 实体类基类.
|
||||
/// </summary>
|
||||
public interface IEntity<TKey>
|
||||
public interface IEntity<TKey> : IEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置 实体唯一标识,主键.
|
||||
/// </summary>
|
||||
TKey Id { get; set; }
|
||||
}
|
||||
|
||||
public interface IEntity
|
||||
{
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user