Files
zsxt_nbzs_h5/Api/Ewide.Core/SeedData/SysTenantSeedData.cs
2021-04-25 15:00:17 +08:00

36 lines
1.2 KiB
C#

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
namespace Ewide.Core
{
public class SysTenantSeedData : IEntitySeedData<SysTenant, MultiTenantDbContextLocator>
{
public IEnumerable<SysTenant> HasData(DbContext dbContext, Type dbContextLocator)
{
return new List<SysTenant>
{
new SysTenant
{
Id = "506a14b7-882d-4548-96fa-a55dbe79bfa1",
Name = "默认租户",
Host = "localhost:5566",
CreatedTime = DateTime.Parse("2021-04-03 00:00:00"),
Connection = "Data Source=./Ewide.db",
Email = "zuohuaijun@163.com",
Phone = "18020030720"
}, // 142307070918780
new SysTenant
{
Id = "eed8c4a6-70d8-49fd-9566-21a6966bb702",
Name = "其他租户",
Host = "localhost:5588",
CreatedTime = DateTime.Parse("2021-04-03 00:00:00"),
Connection = "Data Source=./Dilon_1.db"
} // 142307070918781
};
}
}
}