HuanMengAdmin/admin-generate-ef-seed-data/codes/MigrationsTCharacterLabelModelBuilderExtensions.cs
2025-11-08 00:02:14 +08:00

13 lines
2.4 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace MiaoYu.Repository.EntityFramework.Admin.Migrations.SeedsDatas.Datas;
public static class MigrationsTCharacterLabelModelBuilderExtensions
{
public static void Seed(this ModelBuilder modelBuilder)
{
// ===============================================表T_Character_Label 种子数据=============================================
modelBuilder.Entity<TCharacterLabel>().HasData(new TCharacterLabel(){Id=1,CreateTime=DateTime.Parse("1990/4/24 6:41:45"),LabelName="二次元",TenantId=Guid.Parse("00000000-0000-0000-0000-000000000000"),UpdateTime=DateTime.Parse("2016/10/23 13:08:44")},new TCharacterLabel(){Id=2,CreateTime=DateTime.Parse("2011/6/3 8:15:23"),LabelName="美女",TenantId=Guid.Parse("00000000-0000-0000-0000-000000000000"),UpdateTime=DateTime.Parse("2003/9/12 17:04:38")},new TCharacterLabel(){Id=3,CreateTime=DateTime.Parse("2001/1/17 0:40:56"),LabelName="神秘",TenantId=Guid.Parse("00000000-0000-0000-0000-000000000000"),UpdateTime=DateTime.Parse("1975/12/15 10:00:52")},new TCharacterLabel(){Id=4,CreateTime=DateTime.Parse("1973/3/24 2:29:44"),LabelName="女巫",TenantId=Guid.Parse("00000000-0000-0000-0000-000000000000"),UpdateTime=DateTime.Parse("1983/11/12 6:03:06")},new TCharacterLabel(){Id=5,CreateTime=DateTime.Parse("2003/7/27 4:52:48"),LabelName="预知未来",TenantId=Guid.Parse("00000000-0000-0000-0000-000000000000"),UpdateTime=DateTime.Parse("2007/12/17 0:33:37")},new TCharacterLabel(){Id=6,CreateTime=DateTime.Parse("1995/1/5 20:52:21"),LabelName="古代",TenantId=Guid.Parse("00000000-0000-0000-0000-000000000000"),UpdateTime=DateTime.Parse("2017/3/2 9:28:21")},new TCharacterLabel(){Id=7,CreateTime=DateTime.Parse("1990/11/5 19:24:50"),LabelName="大小姐",TenantId=Guid.Parse("00000000-0000-0000-0000-000000000000"),UpdateTime=DateTime.Parse("1995/2/9 13:46:55")},new TCharacterLabel(){Id=8,CreateTime=DateTime.Parse("1974/12/25 17:25:05"),LabelName="善良",TenantId=Guid.Parse("00000000-0000-0000-0000-000000000000"),UpdateTime=DateTime.Parse("1977/12/21 22:44:03")},new TCharacterLabel(){Id=9,CreateTime=DateTime.Parse("2002/6/19 12:21:28"),LabelName="聪慧",TenantId=Guid.Parse("00000000-0000-0000-0000-000000000000"),UpdateTime=DateTime.Parse("1998/12/13 16:08:18")},new TCharacterLabel(){Id=10,CreateTime=DateTime.Parse("2017/4/14 10:41:49"),LabelName="外星人",TenantId=Guid.Parse("00000000-0000-0000-0000-000000000000"),UpdateTime=DateTime.Parse("2004/6/6 20:16:03")});
}
}