From e3b50a56880edd98bab38c014fbf6f8c7e355e7c Mon Sep 17 00:00:00 2001 From: zhangqi <2794379662@qq.com> Date: Sun, 25 Apr 2021 16:06:26 +0800 Subject: [PATCH 1/3] =?UTF-8?q?feature:=E6=B7=BB=E5=8A=A0=E5=8C=BA?= =?UTF-8?q?=E5=9F=9F=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Api/Ewide.Core/Entity/AreaNumber.cs | 44 +++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Api/Ewide.Core/Entity/AreaNumber.cs diff --git a/Api/Ewide.Core/Entity/AreaNumber.cs b/Api/Ewide.Core/Entity/AreaNumber.cs new file mode 100644 index 0000000..4090445 --- /dev/null +++ b/Api/Ewide.Core/Entity/AreaNumber.cs @@ -0,0 +1,44 @@ +using Furion.DatabaseAccessor; +using Microsoft.EntityFrameworkCore; +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Ewide.Core.Entity +{ + [Table("ewide_area_number")] + [Comment("区域表")] + public class AreaNumber: IEntity + { + [Key] + [Comment("系统使用的区域代码")] + [MaxLength(10)] + public string Code { get; set; } + [Comment("对外使用的区域代码")] + [MaxLength(10)] + public string ShowCode { get; set; } + + [Comment("名称")] + [Required] + [MaxLength(10)] + public string Name { get; set; } + + [Comment("备注")] + public string Note { get; set; } + + [Comment("类别")] + [Required] + public int LevelType { get; set; } + + [Comment("父级区域代码")] + [MaxLength(10)] + public string ParentCode { get; set; } + + [Comment("排序")] + public int Sort { get; set; } + } +} From ccd6c5b8ac5f0da70ce4c3dde341cb52e353c8f2 Mon Sep 17 00:00:00 2001 From: zhangqi <2794379662@qq.com> Date: Sun, 25 Apr 2021 16:15:19 +0800 Subject: [PATCH 2/3] =?UTF-8?q?update:=E5=BC=80=E5=8F=91=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E6=9C=AC=E5=9C=B0=E7=8E=AF=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Api/Ewide.EntityFramework.Core/dbsettings.Development.json | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Api/Ewide.EntityFramework.Core/dbsettings.Development.json diff --git a/Api/Ewide.EntityFramework.Core/dbsettings.Development.json b/Api/Ewide.EntityFramework.Core/dbsettings.Development.json new file mode 100644 index 0000000..0fba246 --- /dev/null +++ b/Api/Ewide.EntityFramework.Core/dbsettings.Development.json @@ -0,0 +1,5 @@ +{ + "ConnectionStrings": { + "DefaultConnection": "Data Source=localhost;Port=3307;Database=Ewide;User ID=root;Password=root;pooling=true;sslmode=none;CharSet=utf8;" + } +} \ No newline at end of file From cce9ce24258ae45c64a566151d4b69c1c1e4a7cd Mon Sep 17 00:00:00 2001 From: zhangqi <2794379662@qq.com> Date: Sun, 25 Apr 2021 16:17:27 +0800 Subject: [PATCH 3/3] =?UTF-8?q?update:csproj=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Ewide.EntityFramework.Core.csproj | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/Api/Ewide.EntityFramework.Core/Ewide.EntityFramework.Core.csproj b/Api/Ewide.EntityFramework.Core/Ewide.EntityFramework.Core.csproj index 1fe60a0..c5d3e62 100644 --- a/Api/Ewide.EntityFramework.Core/Ewide.EntityFramework.Core.csproj +++ b/Api/Ewide.EntityFramework.Core/Ewide.EntityFramework.Core.csproj @@ -5,9 +5,20 @@ + + + + + PreserveNewest + + + PreserveNewest + + + @@ -17,10 +28,5 @@ - - - PreserveNewest - -