Skip to content

Commit 7d6fb52

Browse files
committed
remove columndatatype="nvarchar"
1 parent 9150fe8 commit 7d6fb52

12 files changed

Lines changed: 49 additions & 49 deletions

Blog.Core.Model/Models/Advertisement.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ public class Advertisement : RootEntity
99
/// <summary>
1010
/// 广告图片
1111
/// </summary>
12-
[SugarColumn(Length = 512, IsNullable = true,ColumnDataType ="nvarchar")]
12+
[SugarColumn(Length = 512, IsNullable = true)]
1313
public string ImgUrl { get; set; }
1414

1515
/// <summary>
1616
/// 广告标题
1717
/// </summary>
18-
[SugarColumn(Length = 64, IsNullable = true,ColumnDataType ="nvarchar")]
18+
[SugarColumn(Length = 64, IsNullable = true)]
1919
public string Title { get; set; }
2020

2121
/// <summary>
2222
/// 广告链接
2323
/// </summary>
24-
[SugarColumn(Length = 256, IsNullable = true,ColumnDataType ="nvarchar")]
24+
[SugarColumn(Length = 256, IsNullable = true)]
2525
public string Url { get; set; }
2626

2727
/// <summary>

Blog.Core.Model/Models/BlogArticle.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@ public class BlogArticle
1717
/// <summary>
1818
/// 创建人
1919
/// </summary>
20-
[SugarColumn(Length = 60, IsNullable = true,ColumnDataType ="nvarchar")]
20+
[SugarColumn(Length = 60, IsNullable = true)]
2121
public string bsubmitter { get; set; }
2222

2323
/// <summary>
2424
/// 标题blog
2525
/// </summary>
26-
[SugarColumn(Length = 256, IsNullable = true,ColumnDataType ="nvarchar")]
26+
[SugarColumn(Length = 256, IsNullable = true)]
2727
public string btitle { get; set; }
2828

2929
/// <summary>
3030
/// 类别
3131
/// </summary>
32-
[SugarColumn(Length = int.MaxValue, IsNullable = true,ColumnDataType ="nvarchar")]
32+
[SugarColumn(Length = int.MaxValue, IsNullable = true)]
3333
public string bcategory { get; set; }
3434

3535
/// <summary>

Blog.Core.Model/Models/Guestbook.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,24 @@ public class Guestbook
2121
/// </summary>
2222
public DateTime createdate { get; set; }
2323

24-
[SugarColumn(Length = int.MaxValue, IsNullable = true,ColumnDataType ="nvarchar")]
24+
[SugarColumn(Length = int.MaxValue, IsNullable = true)]
2525
public string username { get; set; }
2626

2727
/// <summary>手机
2828
///
2929
/// </summary>
30-
[SugarColumn(Length = int.MaxValue, IsNullable = true,ColumnDataType ="nvarchar")]
30+
[SugarColumn(Length = int.MaxValue, IsNullable = true)]
3131
public string phone { get; set; }
3232
/// <summary>qq
3333
///
3434
/// </summary>
35-
[SugarColumn(Length = int.MaxValue, IsNullable = true,ColumnDataType ="nvarchar")]
35+
[SugarColumn(Length = int.MaxValue, IsNullable = true)]
3636
public string QQ { get; set; }
3737

3838
/// <summary>留言内容
3939
///
4040
/// </summary>
41-
[SugarColumn(Length = int.MaxValue, IsNullable = true,ColumnDataType ="nvarchar")]
41+
[SugarColumn(Length = int.MaxValue, IsNullable = true)]
4242
public string body { get; set; }
4343
/// <summary>ip地址
4444
///

Blog.Core.Model/Models/Module.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,37 +33,37 @@ public Module()
3333
/// <summary>
3434
/// 名称
3535
/// </summary>
36-
[SugarColumn(Length = 50, IsNullable = true,ColumnDataType ="nvarchar")]
36+
[SugarColumn(Length = 50, IsNullable = true)]
3737
public string Name { get; set; }
3838
/// <summary>
3939
/// 菜单链接地址
4040
/// </summary>
41-
[SugarColumn(Length = 100, IsNullable = true,ColumnDataType ="nvarchar")]
41+
[SugarColumn(Length = 100, IsNullable = true)]
4242
public string LinkUrl { get; set; }
4343
/// <summary>
4444
/// 区域名称
4545
/// </summary>
46-
[SugarColumn(Length = int.MaxValue, IsNullable = true,ColumnDataType ="nvarchar")]
46+
[SugarColumn(Length = int.MaxValue, IsNullable = true)]
4747
public string Area { get; set; }
4848
/// <summary>
4949
/// 控制器名称
5050
/// </summary>
51-
[SugarColumn(Length = int.MaxValue, IsNullable = true,ColumnDataType ="nvarchar")]
51+
[SugarColumn(Length = int.MaxValue, IsNullable = true)]
5252
public string Controller { get; set; }
5353
/// <summary>
5454
/// Action名称
5555
/// </summary>
56-
[SugarColumn(Length = int.MaxValue, IsNullable = true,ColumnDataType ="nvarchar")]
56+
[SugarColumn(Length = int.MaxValue, IsNullable = true)]
5757
public string Action { get; set; }
5858
/// <summary>
5959
/// 图标
6060
/// </summary>
61-
[SugarColumn(Length = 100, IsNullable = true,ColumnDataType ="nvarchar")]
61+
[SugarColumn(Length = 100, IsNullable = true)]
6262
public string Icon { get; set; }
6363
/// <summary>
6464
/// 菜单编号
6565
/// </summary>
66-
[SugarColumn(Length = 10, IsNullable = true,ColumnDataType ="nvarchar")]
66+
[SugarColumn(Length = 10, IsNullable = true)]
6767
public string Code { get; set; }
6868
/// <summary>
6969
/// 排序
@@ -72,7 +72,7 @@ public Module()
7272
/// <summary>
7373
/// /描述
7474
/// </summary>
75-
[SugarColumn(Length = 100, IsNullable = true,ColumnDataType ="nvarchar")]
75+
[SugarColumn(Length = 100, IsNullable = true)]
7676
public string Description { get; set; }
7777
/// <summary>
7878
/// 是否是右侧菜单
@@ -90,7 +90,7 @@ public Module()
9090
/// <summary>
9191
/// 创建者
9292
/// </summary>
93-
[SugarColumn(Length = 50, IsNullable = true,ColumnDataType ="nvarchar")]
93+
[SugarColumn(Length = 50, IsNullable = true)]
9494
public string CreateBy { get; set; }
9595
/// <summary>
9696
/// 创建时间

Blog.Core.Model/Models/ModulePermission.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class ModulePermission : RootEntity
3434
/// <summary>
3535
/// 创建者
3636
/// </summary>
37-
[SugarColumn(Length = 50, IsNullable = true,ColumnDataType ="nvarchar")]
37+
[SugarColumn(Length = 50, IsNullable = true)]
3838
public string CreateBy { get; set; }
3939
/// <summary>
4040
/// 创建时间
@@ -49,7 +49,7 @@ public class ModulePermission : RootEntity
4949
/// <summary>
5050
/// 修改者
5151
/// </summary>
52-
[SugarColumn(Length = 50, IsNullable = true,ColumnDataType ="nvarchar")]
52+
[SugarColumn(Length = 50, IsNullable = true)]
5353
public string ModifyBy { get; set; }
5454
/// <summary>
5555
///修改时间

Blog.Core.Model/Models/OperateLog.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,27 @@ public class OperateLog : RootEntity
2121
/// <summary>
2222
/// 区域名
2323
/// </summary>
24-
[SugarColumn(Length = int.MaxValue, IsNullable = true,ColumnDataType ="nvarchar")]
24+
[SugarColumn(Length = int.MaxValue, IsNullable = true)]
2525
public string Area { get; set; }
2626
/// <summary>
2727
/// 区域控制器名
2828
/// </summary>
29-
[SugarColumn(Length = int.MaxValue, IsNullable = true,ColumnDataType ="nvarchar")]
29+
[SugarColumn(Length = int.MaxValue, IsNullable = true)]
3030
public string Controller { get; set; }
3131
/// <summary>
3232
/// Action名称
3333
/// </summary>
34-
[SugarColumn(Length = int.MaxValue, IsNullable = true,ColumnDataType ="nvarchar")]
34+
[SugarColumn(Length = int.MaxValue, IsNullable = true)]
3535
public string Action { get; set; }
3636
/// <summary>
3737
/// IP地址
3838
/// </summary>
39-
[SugarColumn(Length = int.MaxValue, IsNullable = true,ColumnDataType ="nvarchar")]
39+
[SugarColumn(Length = int.MaxValue, IsNullable = true)]
4040
public string IPAddress { get; set; }
4141
/// <summary>
4242
/// 描述
4343
/// </summary>
44-
[SugarColumn(Length = int.MaxValue, IsNullable = true,ColumnDataType ="nvarchar")]
44+
[SugarColumn(Length = int.MaxValue, IsNullable = true)]
4545
public string Description { get; set; }
4646
/// <summary>
4747
/// 登录时间
@@ -51,7 +51,7 @@ public class OperateLog : RootEntity
5151
/// <summary>
5252
/// 登录名称
5353
/// </summary>
54-
[SugarColumn(Length = int.MaxValue, IsNullable = true,ColumnDataType ="nvarchar")]
54+
[SugarColumn(Length = int.MaxValue, IsNullable = true)]
5555
public string LoginName { get; set; }
5656
/// <summary>
5757
/// 用户ID

Blog.Core.Model/Models/PasswordLib.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ public class PasswordLib
2121
[SugarColumn(IsNullable = true)]
2222
public bool? IsDeleted { get; set; }
2323

24-
[SugarColumn(Length = 200, IsNullable = true,ColumnDataType ="nvarchar")]
24+
[SugarColumn(Length = 200, IsNullable = true)]
2525
public string plURL { get; set; }
2626

27-
[SugarColumn(Length = 100, IsNullable = true,ColumnDataType ="nvarchar")]
27+
[SugarColumn(Length = 100, IsNullable = true)]
2828
public string plPWD { get; set; }
2929

30-
[SugarColumn(Length = 200, IsNullable = true,ColumnDataType ="nvarchar")]
30+
[SugarColumn(Length = 200, IsNullable = true)]
3131
public string plAccountName { get; set; }
3232

3333
[SugarColumn( IsNullable = true)]
@@ -36,10 +36,10 @@ public class PasswordLib
3636
[SugarColumn( IsNullable = true)]
3737
public int? plErrorCount { get; set; }
3838

39-
[SugarColumn(Length = 200, IsNullable = true,ColumnDataType ="nvarchar")]
39+
[SugarColumn(Length = 200, IsNullable = true)]
4040
public string plHintPwd { get; set; }
4141

42-
[SugarColumn(Length = 200, IsNullable = true,ColumnDataType ="nvarchar")]
42+
[SugarColumn(Length = 200, IsNullable = true)]
4343
public string plHintquestion { get; set; }
4444

4545
[SugarColumn( IsNullable = true)]
@@ -51,7 +51,7 @@ public class PasswordLib
5151
[SugarColumn( IsNullable = true)]
5252
public DateTime? plLastErrTime { get; set; }
5353

54-
[SugarColumn(Length = 200, IsNullable = true,ColumnDataType ="nvarchar")]
54+
[SugarColumn(Length = 200, IsNullable = true)]
5555
public string test { get; set; }
5656

5757

Blog.Core.Model/Models/RoleModulePermission.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public RoleModulePermission()
4242
/// <summary>
4343
/// 创建者
4444
/// </summary>
45-
[SugarColumn(Length = 50, IsNullable = true,ColumnDataType ="nvarchar")]
45+
[SugarColumn(Length = 50, IsNullable = true)]
4646
public string CreateBy { get; set; }
4747
/// <summary>
4848
/// 创建时间

Blog.Core.Model/Models/Topic.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ public Topic()
1717
this.TopicDetail = new List<TopicDetail>();
1818
this.tUpdatetime = DateTime.Now;
1919
}
20-
[SugarColumn(Length = 200, IsNullable = true,ColumnDataType ="nvarchar")]
20+
[SugarColumn(Length = 200, IsNullable = true)]
2121
public string tLogo { get; set; }
2222

23-
[SugarColumn(Length = 200, IsNullable = true,ColumnDataType ="nvarchar")]
23+
[SugarColumn(Length = 200, IsNullable = true)]
2424
public string tName { get; set; }
2525

26-
[SugarColumn(Length = 400, IsNullable = true,ColumnDataType ="nvarchar")]
26+
[SugarColumn(Length = 400, IsNullable = true)]
2727
public string tDetail { get; set; }
2828

29-
[SugarColumn(Length = 200, IsNullable = true,ColumnDataType ="nvarchar")]
29+
[SugarColumn(Length = 200, IsNullable = true)]
3030
public string tAuthor { get; set; }
3131

3232
[SugarColumn(Length = 200, IsNullable = true)]

Blog.Core.Model/Models/TopicDetail.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ public TopicDetail()
1919

2020
public int TopicId { get; set; }
2121

22-
[SugarColumn(Length = 200, IsNullable = true,ColumnDataType ="nvarchar")]
22+
[SugarColumn(Length = 200, IsNullable = true)]
2323
public string tdLogo { get; set; }
2424

25-
[SugarColumn(Length = 200, IsNullable = true,ColumnDataType ="nvarchar")]
25+
[SugarColumn(Length = 200, IsNullable = true)]
2626
public string tdName { get; set; }
2727

28-
[SugarColumn(Length = int.MaxValue , IsNullable = true,ColumnDataType ="nvarchar")]
28+
[SugarColumn(Length = int.MaxValue , IsNullable = true)]
2929
public string tdContent { get; set; }
3030

31-
[SugarColumn(Length = 400, IsNullable = true,ColumnDataType ="nvarchar")]
31+
[SugarColumn(Length = 400, IsNullable = true)]
3232
public string tdDetail { get; set; }
3333

34-
[SugarColumn(Length = 200, IsNullable = true,ColumnDataType ="nvarchar")]
34+
[SugarColumn(Length = 200, IsNullable = true)]
3535
public string tdSectendDetail { get; set; }
3636

3737
public bool tdIsDelete { get; set; } = false;

0 commit comments

Comments
 (0)