From 671b429b3c000eccf05910452505562f06defa73 Mon Sep 17 00:00:00 2001 From: schangxiang@126.com <schangxiang@126.com> Date: 周二, 06 5月 2025 07:54:56 +0800 Subject: [PATCH] 222 --- Weben_CMS专用代码生成器/Code/Utility/StructStrHelper.cs | 15 +++++++++++++-- 1 files changed, 13 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/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..fee22c6 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; @@ -229,6 +230,7 @@ // var bb = ""; //} string str_NullFlag = " "; + if (columnModel.IsNullable) { str_NullFlag = "? "; } string attrStr = ""; attrStr += " /// <summary>\n"; @@ -421,6 +423,7 @@ // var bb = ""; //} string str_NullFlag = " "; + if (columnModel.IsNullable) { str_NullFlag = "? "; } string attrStr = ""; attrStr += " /// <summary>\n"; @@ -468,7 +471,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