diff --git a/COMCMS.Common/COMCMS.Common.csproj b/COMCMS.Common/COMCMS.Common.csproj index 17e1db8..3c17b8c 100644 --- a/COMCMS.Common/COMCMS.Common.csproj +++ b/COMCMS.Common/COMCMS.Common.csproj @@ -6,7 +6,7 @@ - + diff --git a/COMCMS.Core/COMCMS.Core.csproj b/COMCMS.Core/COMCMS.Core.csproj index 4c50a07..80a3766 100644 --- a/COMCMS.Core/COMCMS.Core.csproj +++ b/COMCMS.Core/COMCMS.Core.csproj @@ -5,7 +5,7 @@ - + diff --git a/COMCMS.Web/COMCMS.Web.csproj b/COMCMS.Web/COMCMS.Web.csproj index 3510146..0632c1a 100644 --- a/COMCMS.Web/COMCMS.Web.csproj +++ b/COMCMS.Web/COMCMS.Web.csproj @@ -7,8 +7,8 @@ - - + + diff --git a/COMCMS.Web/Controllers/HomeController.cs b/COMCMS.Web/Controllers/HomeController.cs index 45d611d..18e5ab2 100644 --- a/COMCMS.Web/Controllers/HomeController.cs +++ b/COMCMS.Web/Controllers/HomeController.cs @@ -52,15 +52,13 @@ namespace COMCMS.Web.Controllers public IActionResult Contact() { - - ViewData["Message"] = "Your contact page."; - string prekey = Utils.PrefixKey; - Article a = Article.FindById(1); - ViewBag.siteName = a.Title; - string abc = HttpContext.Session.GetString("abc"); - ViewBag.c = CookiesHelper.GetCookie("abc")+ abc; - ViewBag.d = prekey; - return View(); + Link l = new Link(); + l.Title = "心😃💪 💪"; + l.Sequence = 0; + l.IsHide = false; + l.LinkURL = "http://www.baidu.com"; + l.Insert(); + return View(l); } public IActionResult Error() diff --git a/COMCMS.Web/Views/Home/Contact.cshtml b/COMCMS.Web/Views/Home/Contact.cshtml index 6024144..a6f6361 100644 --- a/COMCMS.Web/Views/Home/Contact.cshtml +++ b/COMCMS.Web/Views/Home/Contact.cshtml @@ -1,12 +1,9 @@ -@{ +@model COMCMS.Core.Link +@{ ViewData["Title"] = "Contact"; } -

@ViewData["Title"]

-

@ViewData["Message"]

-

@ViewBag.siteName

-

@ViewBag.c

-

@ViewBag.d.ToString()

- +

@Model.Title

+

@Model.Id

One Microsoft Way
Redmond, WA 98052-6399
diff --git a/COMCMS.Web/app.config b/COMCMS.Web/app.config index 20df385..e7d399c 100644 --- a/COMCMS.Web/app.config +++ b/COMCMS.Web/app.config @@ -5,7 +5,7 @@ - + diff --git a/COMCMS.Web/appsettings.json b/COMCMS.Web/appsettings.json index 4088ad9..587197e 100644 --- a/COMCMS.Web/appsettings.json +++ b/COMCMS.Web/appsettings.json @@ -13,7 +13,7 @@ }, "connectionStrings": { "dbconn": { - "connectionString": "Server=.;Port=3306;Database=comcmscore;Uid=root;Pwd=root;", + "connectionString": "Server=.;Port=3306;Database=comcms2;Uid=root;Pwd=root;", "providerName": "MySql.Data.MySqlClient" }, "mssqlconnon": { diff --git a/DLL/NewLife.Core.dll b/DLL/NewLife.Core.dll index 994ecad..efb46d4 100644 Binary files a/DLL/NewLife.Core.dll and b/DLL/NewLife.Core.dll differ diff --git a/DLL/XCode.dll b/DLL/XCode.dll index cc2b4db..2b2b4ea 100644 Binary files a/DLL/XCode.dll and b/DLL/XCode.dll differ diff --git a/XCoder/生成实体类.tt b/XCoder/Build.tt similarity index 100% rename from XCoder/生成实体类.tt rename to XCoder/Build.tt diff --git a/XCoder/Model.xml b/XCoder/Model.xml new file mode 100644 index 0000000..f5cc6d3 --- /dev/null +++ b/XCoder/Model.xml @@ -0,0 +1,127 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+
\ No newline at end of file diff --git a/XCoder/XCoder(代码生成器).csproj b/XCoder/XCoder(代码生成器).csproj index 12c70cb..1f5a26f 100644 --- a/XCoder/XCoder(代码生成器).csproj +++ b/XCoder/XCoder(代码生成器).csproj @@ -30,8 +30,8 @@ 4 - - ..\packages\NewLife.Core.6.6.6678.32714\lib\net45\NewLife.Core.dll + + ..\packages\NewLife.Core.7.0.6722.39740\lib\net45\NewLife.Core.dll @@ -41,32 +41,33 @@ - - ..\packages\NewLife.XCode.9.6.6678.32715\lib\net45\XCode.dll + + ..\packages\NewLife.XCode.9.7.6722.39741\lib\net45\XCode.dll - - - True - True - 生成实体类.tt - - - + + TextTemplatingFileGenerator + Build.log + Designer - - TextTemplatingFileGenerator - 生成实体类.log - + + + + True + True + Build.tt + + + \ No newline at end of file diff --git a/XCoder/packages.config b/XCoder/packages.config index a99b0e8..4615274 100644 --- a/XCoder/packages.config +++ b/XCoder/packages.config @@ -1,5 +1,5 @@  - - + + \ No newline at end of file diff --git a/XCoder/优惠券使用记录.cs b/XCoder/优惠券使用记录.cs index 1ea692f..94fc685 100644 --- a/XCoder/优惠券使用记录.cs +++ b/XCoder/优惠券使用记录.cs @@ -92,7 +92,7 @@ namespace COMCMS.Core [DisplayName("登录IP")] [Description("登录IP")] [DataObjectField(false, false, true, 20)] - [BindColumn("IP", "登录IP", "nvarchar(20)")] + [BindColumn("Ip", "登录IP", "nvarchar(20)")] public String Ip { get { return _Ip; } set { if (OnPropertyChanging(__.Ip, value)) { _Ip = value; OnPropertyChanged(__.Ip); } } } private String _Actions; diff --git a/XCoder/商家.cs b/XCoder/商家.cs index ee83bff..b577f0b 100644 --- a/XCoder/商家.cs +++ b/XCoder/商家.cs @@ -292,7 +292,7 @@ namespace COMCMS.Core [DisplayName("QQ")] [Description("QQ")] [DataObjectField(false, false, true, 20)] - [BindColumn("QQ", "QQ", "nvarchar(20)")] + [BindColumn("Qq", "QQ", "nvarchar(20)")] public String Qq { get { return _Qq; } set { if (OnPropertyChanging(__.Qq, value)) { _Qq = value; OnPropertyChanged(__.Qq); } } } private String _Skype; diff --git a/XCoder/在线支付订单.cs b/XCoder/在线支付订单.cs index a1632c7..5bd1a4d 100644 --- a/XCoder/在线支付订单.cs +++ b/XCoder/在线支付订单.cs @@ -140,7 +140,7 @@ namespace COMCMS.Core [DisplayName("下单IP")] [Description("下单IP")] [DataObjectField(false, false, true, 20)] - [BindColumn("IP", "下单IP", "nvarchar(20)")] + [BindColumn("Ip", "下单IP", "nvarchar(20)")] public String Ip { get { return _Ip; } set { if (OnPropertyChanging(__.Ip, value)) { _Ip = value; OnPropertyChanged(__.Ip); } } } private DateTime _AddTime; diff --git a/XCoder/小程序Session.cs b/XCoder/小程序Session.cs index 662747d..cf9c9f8 100644 --- a/XCoder/小程序Session.cs +++ b/XCoder/小程序Session.cs @@ -36,7 +36,7 @@ namespace COMCMS.Core [DisplayName("登录IP")] [Description("登录IP")] [DataObjectField(false, false, true, 20)] - [BindColumn("IP", "登录IP", "nvarchar(20)")] + [BindColumn("Ip", "登录IP", "nvarchar(20)")] public String Ip { get { return _Ip; } set { if (OnPropertyChanging(__.Ip, value)) { _Ip = value; OnPropertyChanged(__.Ip); } } } private String _Key; diff --git a/XCoder/用户.cs b/XCoder/用户.cs index 6f702f0..a6b6af0 100644 --- a/XCoder/用户.cs +++ b/XCoder/用户.cs @@ -172,7 +172,7 @@ namespace COMCMS.Core [DisplayName("QQ")] [Description("QQ")] [DataObjectField(false, false, true, 20)] - [BindColumn("QQ", "QQ", "nvarchar(20)")] + [BindColumn("Qq", "QQ", "nvarchar(20)")] public String Qq { get { return _Qq; } set { if (OnPropertyChanging(__.Qq, value)) { _Qq = value; OnPropertyChanged(__.Qq); } } } private String _Weixin; @@ -220,7 +220,7 @@ namespace COMCMS.Core [DisplayName("身份证")] [Description("身份证")] [DataObjectField(false, false, true, 20)] - [BindColumn("IDNO", "身份证", "nvarchar(20)")] + [BindColumn("Idno", "身份证", "nvarchar(20)")] public String Idno { get { return _Idno; } set { if (OnPropertyChanging(__.Idno, value)) { _Idno = value; OnPropertyChanged(__.Idno); } } } private String _Country; diff --git a/XCoder/用户余额变化记录.cs b/XCoder/用户余额变化记录.cs index 62f41dc..7e30dea 100644 --- a/XCoder/用户余额变化记录.cs +++ b/XCoder/用户余额变化记录.cs @@ -60,7 +60,7 @@ namespace COMCMS.Core [DisplayName("登录IP")] [Description("登录IP")] [DataObjectField(false, false, true, 20)] - [BindColumn("IP", "登录IP", "nvarchar(20)")] + [BindColumn("Ip", "登录IP", "nvarchar(20)")] public String Ip { get { return _Ip; } set { if (OnPropertyChanging(__.Ip, value)) { _Ip = value; OnPropertyChanged(__.Ip); } } } private String _Actions; diff --git a/XCoder/用户提现订单.cs b/XCoder/用户提现订单.cs index 0652afa..d844e7a 100644 --- a/XCoder/用户提现订单.cs +++ b/XCoder/用户提现订单.cs @@ -68,7 +68,7 @@ namespace COMCMS.Core [DisplayName("登录IP")] [Description("登录IP")] [DataObjectField(false, false, true, 20)] - [BindColumn("IP", "登录IP", "nvarchar(20)")] + [BindColumn("Ip", "登录IP", "nvarchar(20)")] public String Ip { get { return _Ip; } set { if (OnPropertyChanging(__.Ip, value)) { _Ip = value; OnPropertyChanged(__.Ip); } } } private String _Actions; diff --git a/XCoder/用户日志表.cs b/XCoder/用户日志表.cs index b80c0e5..33ea931 100644 --- a/XCoder/用户日志表.cs +++ b/XCoder/用户日志表.cs @@ -36,7 +36,7 @@ namespace COMCMS.Core [DisplayName("唯一ID")] [Description("唯一ID")] [DataObjectField(false, false, true, 50)] - [BindColumn("GUID", "唯一ID", "nvarchar(50)")] + [BindColumn("Guid", "唯一ID", "nvarchar(50)")] public String Guid { get { return _Guid; } set { if (OnPropertyChanging(__.Guid, value)) { _Guid = value; OnPropertyChanged(__.Guid); } } } private String _UserName; diff --git a/XCoder/用户返现余额变化记录.cs b/XCoder/用户返现余额变化记录.cs index 8227dd4..ec4a2b7 100644 --- a/XCoder/用户返现余额变化记录.cs +++ b/XCoder/用户返现余额变化记录.cs @@ -60,7 +60,7 @@ namespace COMCMS.Core [DisplayName("登录IP")] [Description("登录IP")] [DataObjectField(false, false, true, 20)] - [BindColumn("IP", "登录IP", "nvarchar(20)")] + [BindColumn("Ip", "登录IP", "nvarchar(20)")] public String Ip { get { return _Ip; } set { if (OnPropertyChanging(__.Ip, value)) { _Ip = value; OnPropertyChanged(__.Ip); } } } private String _Actions; diff --git a/XCoder/留言详情.cs b/XCoder/留言详情.cs index c3e76fb..3954c3f 100644 --- a/XCoder/留言详情.cs +++ b/XCoder/留言详情.cs @@ -92,7 +92,7 @@ namespace COMCMS.Core [DisplayName("用户IP")] [Description("用户IP")] [DataObjectField(false, false, true, 20)] - [BindColumn("IP", "用户IP", "nvarchar(20)")] + [BindColumn("Ip", "用户IP", "nvarchar(20)")] public String Ip { get { return _Ip; } set { if (OnPropertyChanging(__.Ip, value)) { _Ip = value; OnPropertyChanged(__.Ip); } } } private String _Nickname; @@ -124,7 +124,7 @@ namespace COMCMS.Core [DisplayName("QQ")] [Description("QQ")] [DataObjectField(false, false, true, 20)] - [BindColumn("QQ", "QQ", "nvarchar(20)")] + [BindColumn("Qq", "QQ", "nvarchar(20)")] public String Qq { get { return _Qq; } set { if (OnPropertyChanging(__.Qq, value)) { _Qq = value; OnPropertyChanged(__.Qq); } } } private String _Skype; diff --git a/XCoder/管理日志表.cs b/XCoder/管理日志表.cs index 9bc5570..48f9ef6 100644 --- a/XCoder/管理日志表.cs +++ b/XCoder/管理日志表.cs @@ -36,7 +36,7 @@ namespace COMCMS.Core [DisplayName("唯一ID")] [Description("唯一ID")] [DataObjectField(false, false, true, 50)] - [BindColumn("GUID", "唯一ID", "nvarchar(50)")] + [BindColumn("Guid", "唯一ID", "nvarchar(50)")] public String Guid { get { return _Guid; } set { if (OnPropertyChanging(__.Guid, value)) { _Guid = value; OnPropertyChanged(__.Guid); } } } private String _UserName; diff --git a/XCoder/系统配置.cs b/XCoder/系统配置.cs index 22aab42..220375c 100644 --- a/XCoder/系统配置.cs +++ b/XCoder/系统配置.cs @@ -52,7 +52,7 @@ namespace COMCMS.Core [DisplayName("ICP备案")] [Description("ICP备案")] [DataObjectField(false, false, true, 50)] - [BindColumn("ICP", "ICP备案", "nvarchar(50)")] + [BindColumn("Icp", "ICP备案", "nvarchar(50)")] public String Icp { get { return _Icp; } set { if (OnPropertyChanging(__.Icp, value)) { _Icp = value; OnPropertyChanged(__.Icp); } } } private String _SiteEmail; diff --git a/XCoder/订单.cs b/XCoder/订单.cs index df90129..ee3359f 100644 --- a/XCoder/订单.cs +++ b/XCoder/订单.cs @@ -316,7 +316,7 @@ namespace COMCMS.Core [DisplayName("下单IP")] [Description("下单IP")] [DataObjectField(false, false, true, 20)] - [BindColumn("IP", "下单IP", "nvarchar(20)")] + [BindColumn("Ip", "下单IP", "nvarchar(20)")] public String Ip { get { return _Ip; } set { if (OnPropertyChanging(__.Ip, value)) { _Ip = value; OnPropertyChanged(__.Ip); } } } private Int32 _IsInvoice; diff --git a/XCoder/购物车.cs b/XCoder/购物车.cs index 29bd0ed..4be44dc 100644 --- a/XCoder/购物车.cs +++ b/XCoder/购物车.cs @@ -36,7 +36,7 @@ namespace COMCMS.Core [DisplayName("唯一GUID")] [Description("唯一GUID,没登录用户使用")] [DataObjectField(false, false, true, 50)] - [BindColumn("GUID", "唯一GUID,没登录用户使用", "nvarchar(50)")] + [BindColumn("Guid", "唯一GUID,没登录用户使用", "nvarchar(50)")] public String Guid { get { return _Guid; } set { if (OnPropertyChanging(__.Guid, value)) { _Guid = value; OnPropertyChanged(__.Guid); } } } private String _Details;