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.
zongzhilinglan/GDZZ.CodeFirst/SeedData/SysCodeGenConfigSeedData.cs

14 lines
7.0 KiB

using GDZZ.Core;
using GDZZ.Core.Entity;
namespace GDZZ.CodeFirst;
public class SysCodeGenConfigSeedData : ISeedData , ISqlSugarEntitySeedData<SysCodeGenConfig>
{ public IEnumerable<SysCodeGenConfig> HasData()
{ string json = @"[{""CodeGenId"":291946907033669,""ColumnName"":""Id"",""ColumnComment"":""主键Id"",""NetType"":""long"",""EffectType"":""input"",""FkEntityName"":null,""FkColumnName"":null,""FkColumnNetType"":null,""DictTypeCode"":null,""WhetherRetract"":""N"",""WhetherRequired"":""N"",""QueryWhether"":""N"",""QueryType"":""=="",""WhetherTable"":""N"",""WhetherAddUpdate"":""N"",""ColumnKey"":""True"",""DataType"":""bigint"",""WhetherCommon"":""N"",""CreatedTime"":""2022-05-25T09:15:02.403"",""UpdatedTime"":null,""CreatedUserId"":142307070910551,""CreatedUserName"":""超级管理员"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":291946907168837},{""CodeGenId"":291946907033669,""ColumnName"":""Name"",""ColumnComment"":""姓名"",""NetType"":""string"",""EffectType"":""input"",""FkEntityName"":null,""FkColumnName"":null,""FkColumnNetType"":null,""DictTypeCode"":null,""WhetherRetract"":""N"",""WhetherRequired"":""N"",""QueryWhether"":""Y"",""QueryType"":""=="",""WhetherTable"":""Y"",""WhetherAddUpdate"":""Y"",""ColumnKey"":""False"",""DataType"":""nvarchar"",""WhetherCommon"":""N"",""CreatedTime"":""2022-05-25T09:15:02.403"",""UpdatedTime"":null,""CreatedUserId"":142307070910551,""CreatedUserName"":""超级管理员"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":291946907168838},{""CodeGenId"":291946907033669,""ColumnName"":""CreatedTime"",""ColumnComment"":""创建时间"",""NetType"":""DateTime"",""EffectType"":""datepicker"",""FkEntityName"":null,""FkColumnName"":null,""FkColumnNetType"":null,""DictTypeCode"":null,""WhetherRetract"":""N"",""WhetherRequired"":""N"",""QueryWhether"":""N"",""QueryType"":""=="",""WhetherTable"":""N"",""WhetherAddUpdate"":""N"",""ColumnKey"":""False"",""DataType"":""datetime"",""WhetherCommon"":""Y"",""CreatedTime"":""2022-05-25T09:15:02.403"",""UpdatedTime"":null,""CreatedUserId"":142307070910551,""CreatedUserName"":""超级管理员"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":291946907168839},{""CodeGenId"":291946907033669,""ColumnName"":""UpdatedTime"",""ColumnComment"":""更新时间"",""NetType"":""DateTime"",""EffectType"":""datepicker"",""FkEntityName"":null,""FkColumnName"":null,""FkColumnNetType"":null,""DictTypeCode"":null,""WhetherRetract"":""N"",""WhetherRequired"":""N"",""QueryWhether"":""N"",""QueryType"":""=="",""WhetherTable"":""N"",""WhetherAddUpdate"":""N"",""ColumnKey"":""False"",""DataType"":""datetime"",""WhetherCommon"":""Y"",""CreatedTime"":""2022-05-25T09:15:02.403"",""UpdatedTime"":null,""CreatedUserId"":142307070910551,""CreatedUserName"":""超级管理员"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":291946907168840},{""CodeGenId"":291946907033669,""ColumnName"":""CreatedUserId"",""ColumnComment"":""创建者Id"",""NetType"":""long"",""EffectType"":""input"",""FkEntityName"":null,""FkColumnName"":null,""FkColumnNetType"":null,""DictTypeCode"":null,""WhetherRetract"":""N"",""WhetherRequired"":""N"",""QueryWhether"":""N"",""QueryType"":""=="",""WhetherTable"":""N"",""WhetherAddUpdate"":""N"",""ColumnKey"":""False"",""DataType"":""bigint"",""WhetherCommon"":""Y"",""CreatedTime"":""2022-05-25T09:15:02.403"",""UpdatedTime"":null,""CreatedUserId"":142307070910551,""CreatedUserName"":""超级管理员"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"":false,""Id"":291946907172933},{""CodeGenId"":291946907033669,""ColumnName"":""CreatedUserName"",""ColumnComment"":""创建者名称"",""NetType"":""string"",""EffectType"":""input"",""FkEntityName"":null,""FkColumnName"":null,""FkColumnNetType"":null,""DictTypeCode"":null,""WhetherRetract"":""N"",""WhetherRequired"":""N"",""QueryWhether"":""N"",""QueryType"":""=="",""WhetherTable"":""N"",""WhetherAddUpdate"":""N"",""ColumnKey"":""False"",""DataType"":""nvarchar"",""WhetherCommon"":""Y"",""CreatedTime"":""2022-05-25T09:15:02.403"",""UpdatedTime"":null,""CreatedUserId"":142307070910551,""CreatedUserName"":""超级管理员"",""UpdatedUserId"":null,""UpdatedUserName"":null,""IsDeleted"
";
List<SysCodeGenConfig> list = JsonUtil.ToObject<List<SysCodeGenConfig>>(json);
return list;
}}