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

13 lines
663 B
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 MigrationsTCharacterTypeIntimacyModelBuilderExtensions
{
public static void Seed(this ModelBuilder modelBuilder)
{
// ===============================================表T_Character_Type_Intimacy 种子数据=============================================
modelBuilder.Entity<TCharacterTypeIntimacy>().HasData(new TCharacterTypeIntimacy(){Id=1,CharacterId=1,CreateTime=DateTime.Parse("2024/1/1 0:00:00"),OrderBy=1,TenantId=Guid.Parse("00000000-0000-0000-0000-000000000000"),TypeId=1,UpdateTIme=DateTime.Parse("2024/1/1 0:00:00")});
}
}