This commit is contained in:
ky_sunl
2021-04-22 13:37:25 +00:00
parent 575a22954f
commit d1c9e5a71e
699 changed files with 1062425 additions and 40640 deletions

View File

@@ -0,0 +1,35 @@
using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
namespace Dilon.Core
{
public class SysTenantSeedData : IEntitySeedData<SysTenant, MultiTenantDbContextLocator>
{
public IEnumerable<SysTenant> HasData(DbContext dbContext, Type dbContextLocator)
{
return new List<SysTenant>
{
new SysTenant
{
Id = 142307070918780,
Name = "默认租户",
Host = "localhost:5566",
CreatedTime = DateTime.Parse("2021-04-03 00:00:00"),
Connection = "Data Source=./Dilon.db",
Email = "zuohuaijun@163.com",
Phone = "18020030720"
},
new SysTenant
{
Id = 142307070918781,
Name = "其他租户",
Host = "localhost:5588",
CreatedTime = DateTime.Parse("2021-04-03 00:00:00"),
Connection = "Data Source=./Dilon_1.db"
}
};
}
}
}