使用razor模板生成实体文件

This commit is contained in:
2023-05-18 15:38:25 +08:00
parent 709c9f6598
commit 31db0d5667
8 changed files with 296 additions and 175 deletions

View File

@@ -4,17 +4,17 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using JNPF.Common.Contracts;
using JNPF.Common.Security;
using SqlSugar;
namespace Tnb.Common.Contracts
namespace Tnb.Common.Contracts;
public class BaseEntity<TKey> : IEntity 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; }
}
/// <summary>
/// 获取或设置 编号.
/// </summary>
[SugarColumn(ColumnName = "id", ColumnDescription = "主键", IsPrimaryKey = true)]
public TKey id { get; set; }
}