添加dto模式的demo测试
This commit is contained in:
@@ -16,7 +16,7 @@ namespace Yi.Framework.Model.Base
|
||||
/// Returns an array of ordered keys for this entity.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
object[] GetKeys();
|
||||
//object[] GetKeys();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using Yi.Framework.Model.Base;
|
||||
|
||||
namespace Yi.Framework.Model.RABC.Entitys
|
||||
{
|
||||
[SugarTable("Student")]
|
||||
public class StudentEntity : IEntity<Guid>, IMultiTenant
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Remark { get; set; }
|
||||
|
||||
[SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
|
||||
public Guid Id { get; set; }
|
||||
|
||||
[SugarColumn(ColumnName = "TenantId")]
|
||||
public Guid? TenantId { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user