This commit is contained in:
ky_sunl
2021-04-22 13:37:25 +00:00
parent 575a22954f
commit d1c9e5a71e
699 changed files with 1062425 additions and 40640 deletions

View File

@@ -0,0 +1,39 @@
using Dilon.Core;
using Microsoft.EntityFrameworkCore;
using System;
using System.ComponentModel.DataAnnotations.Schema;
namespace Dilon.Application
{
/// <summary>
/// 代码生成实体测试EF
/// </summary>
[Table("code_gen_test")]
[Comment("代码生成业务")]
public class CodeGenTest : DEntityBase
{
/// <summary>
/// 名称
/// </summary>
[Comment("名称")]
public string Name { get; set; }
/// <summary>
/// 昵称
/// </summary>
[Comment("昵称")]
public string NickName { get; set; }
/// <summary>
/// 生日
/// </summary>
[Comment("生日")]
public DateTimeOffset Birthday { get; set; }
/// <summary>
/// 年龄
/// </summary>
[Comment("年龄")]
public int Age { get; set; }
}
}

View File

@@ -0,0 +1 @@
/** 您的业务实体文件写在此文件夹下面 **/

View File

@@ -0,0 +1,35 @@
using SqlSugar;
using System;
namespace Dilon.Application
{
/// <summary>
/// SqlSugar实体
/// </summary>
[SugarTable("Test", TableDescription = "我的业务表")]
public class Test
{
/// <summary>
/// 雪花Id
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public long Id { get; set; }
/// <summary>
/// 名称
/// </summary>
[SugarColumn(ColumnDataType = "Nvarchar(32)")]
public string Name { get; set; }
/// <summary>
/// 年龄
/// </summary>
public int Age { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[SugarColumn(IsNullable = true)]
public DateTimeOffset CreateTime { get; set; }
}
}