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

13 lines
916 B
C#
Raw 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 MigrationsTCharacterTypeModelBuilderExtensions
{
public static void Seed(this ModelBuilder modelBuilder)
{
// ===============================================表T_Character_Type 种子数据=============================================
modelBuilder.Entity<TCharacterType>().HasData(new TCharacterType(){Id=1,CreateTime=DateTime.Parse("2024/7/14 18:06:31"),IsNotCategoryShow=bool.Parse("False"),Name="虚拟想象",OrderBy=1,TenantId=Guid.Parse("00000000-0000-0000-0000-000000000000"),UpdateTime=DateTime.Parse("2024/7/14 18:06:35")},new TCharacterType(){Id=2,CreateTime=DateTime.Parse("2024/7/14 18:09:27"),IsNotCategoryShow=bool.Parse("False"),Name="IP同人",OrderBy=2,TenantId=Guid.Parse("00000000-0000-0000-0000-000000000000"),UpdateTime=DateTime.Parse("2024/7/14 18:09:29")});
}
}