You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
743 B

using GDZZ.Core;
using GDZZ.Core.Entity;
namespace GDZZ.CodeFirst;
public class SysCodeGenSeedData : ISeedData , ISqlSugarEntitySeedData<SysCodeGen>
{ public IEnumerable<SysCodeGen> HasData()
{ string json = @"[{""AuthorName"":""GDZZ"",""TablePrefix"":null,""GenerateType"":""2"",""TableName"":""Test"",""NameSpace"":""GDZZ.Application"",""BusName"":""测试"",""MenuApplication"":""busiapp"",""MenuPid"":0,""CreatedTime"":""2022-05-25T09:15:02.367"",""UpdatedTime"":null,""CreatedUserId"":142307070910551,""CreatedUserName"":""超级管理员"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":291946907033669}]
";
List<SysCodeGen> list = JsonUtil.ToObject<List<SysCodeGen>>(json);
return list;
}}