😎修复种子数据模板
This commit is contained in:
parent
bcd0c1b014
commit
020fc85561
@ -475,7 +475,7 @@ public class SysDatabaseService : IDynamicApiController, ITransient
|
||||
input.SeedDataName,
|
||||
input.ConfigId,
|
||||
tableInfo.Description,
|
||||
// JsonIgnoreInfo = jsonIgnoreInfo,
|
||||
JsonIgnoreInfo = new List<List<JsonIgnoredPropertyData>>(),
|
||||
RecordList = JSON.Serialize(recordList)
|
||||
};
|
||||
var tResult = await _viewEngine.RunCompileAsync(tContent, data, builderAction: builder =>
|
||||
|
||||
@ -24,7 +24,7 @@ public class @(Model.SeedDataName): ISqlSugarEntitySeedData<@(Model.EntityName)>
|
||||
@(Model.RecordList.Replace("\"","\"\"").Replace("\n", "\n\t\t\t"))
|
||||
";
|
||||
List<@(Model.EntityName)> records = Newtonsoft.Json.JsonConvert.DeserializeObject<List<@(Model.EntityName)>>(recordList);
|
||||
@if (Model.JsonIgnoreInfo.Count>0) {
|
||||
@if (Model.JsonIgnoreInfo.Count > 0) {
|
||||
@:
|
||||
@:#region 处理 JsonIgnore 的Property
|
||||
@:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user