From 0131c34daa197c91b2abf52e78cd1720ba232b21 Mon Sep 17 00:00:00 2001 From: schangxiang@126.com <schangxiang@126.com> Date: 周二, 06 5月 2025 07:44:29 +0800 Subject: [PATCH] 222 --- Weben_CMS专用代码生成器/Code/Const/SystemConst.cs | 6 ++++++ Weben_CMS专用代码生成器/Code/Utility/StructStrHelper.cs | 13 +++++++++++-- Weben_CMS专用代码生成器/Code/Templete/Entity/Dto模板.txt | 2 ++ 3 files changed, 19 insertions(+), 2 deletions(-) diff --git "a/Weben_CMS\344\270\223\347\224\250\344\273\243\347\240\201\347\224\237\346\210\220\345\231\250/Code/Const/SystemConst.cs" "b/Weben_CMS\344\270\223\347\224\250\344\273\243\347\240\201\347\224\237\346\210\220\345\231\250/Code/Const/SystemConst.cs" index 5fcf4a6..932857f 100644 --- "a/Weben_CMS\344\270\223\347\224\250\344\273\243\347\240\201\347\224\237\346\210\220\345\231\250/Code/Const/SystemConst.cs" +++ "b/Weben_CMS\344\270\223\347\224\250\344\273\243\347\240\201\347\224\237\346\210\220\345\231\250/Code/Const/SystemConst.cs" @@ -16,5 +16,11 @@ /// 鍓嶇鐨勬枃浠跺す鍚嶇О /// </summary> public const string web_FolerName = @"\web\"; + + + /// <summary> + /// 鐗规畩瀛楁-鎵╁睍瀛楁 + /// </summary> + public const string pro_ExtraProperties = "ExtraProperties"; } } diff --git "a/Weben_CMS\344\270\223\347\224\250\344\273\243\347\240\201\347\224\237\346\210\220\345\231\250/Code/Templete/Entity/Dto\346\250\241\346\235\277.txt" "b/Weben_CMS\344\270\223\347\224\250\344\273\243\347\240\201\347\224\237\346\210\220\345\231\250/Code/Templete/Entity/Dto\346\250\241\346\235\277.txt" index e0de19a..da3d4ab 100644 --- "a/Weben_CMS\344\270\223\347\224\250\344\273\243\347\240\201\347\224\237\346\210\220\345\231\250/Code/Templete/Entity/Dto\346\250\241\346\235\277.txt" +++ "b/Weben_CMS\344\270\223\347\224\250\344\273\243\347\240\201\347\224\237\346\210\220\345\231\250/Code/Templete/Entity/Dto\346\250\241\346\235\277.txt" @@ -1,7 +1,9 @@ using CMS.Plugin.$NameSpacePath$.Domain.Shared.Enums; using Volo.Abp.Application.Dtos; +using Volo.Abp.Data; using Volo.Abp.Domain.Entities; + namespace CMS.Plugin.$NameSpacePath$.Application.Contracts.Dtos.$EntityName$; /// <summary> diff --git "a/Weben_CMS\344\270\223\347\224\250\344\273\243\347\240\201\347\224\237\346\210\220\345\231\250/Code/Utility/StructStrHelper.cs" "b/Weben_CMS\344\270\223\347\224\250\344\273\243\347\240\201\347\224\237\346\210\220\345\231\250/Code/Utility/StructStrHelper.cs" index b05c3d8..346089e 100644 --- "a/Weben_CMS\344\270\223\347\224\250\344\273\243\347\240\201\347\224\237\346\210\220\345\231\250/Code/Utility/StructStrHelper.cs" +++ "b/Weben_CMS\344\270\223\347\224\250\344\273\243\347\240\201\347\224\237\346\210\220\345\231\250/Code/Utility/StructStrHelper.cs" @@ -1,4 +1,5 @@ -锘縰sing GenerateCode_WeiBen_WMS.Model; +锘縰sing GenerateCode_WeiBen_WMS.Const; +using GenerateCode_WeiBen_WMS.Model; using System; using System.Collections.Generic; using System.Configuration; @@ -468,7 +469,15 @@ break; default: - attrStr += " public string" + str_NullFlag + attr + " { get; set; }\n"; + //鐗规畩澶勭悊 瀛楁 ExtraProperties + if (columnModel.ColumnName.ToUpper() == SystemConst.pro_ExtraProperties.ToUpper()) + { + attrStr += " public ExtraPropertyDictionary" + str_NullFlag + attr + " { get; set; }\n"; + } + else + { + attrStr += " public string" + str_NullFlag + attr + " { get; set; }\n"; + } attrStr += "\n";//鏈�鍚庢槸鍔犱竴涓┖鏍� break; } -- Gitblit v1.9.3