mirror of https://github.com/abpframework/abp.git
3 changed files with 19 additions and 10 deletions
@ -0,0 +1,18 @@ |
|||||
|
using System; |
||||
|
using System.Threading.Tasks; |
||||
|
using Volo.Abp.Data; |
||||
|
|
||||
|
namespace Volo.Abp.TenantManagement |
||||
|
{ |
||||
|
public static class DataSeederExtensions |
||||
|
{ |
||||
|
public static Task SeedAsync(this IDataSeeder seeder, Guid? tenantId, TenantCreateDto input) |
||||
|
{ |
||||
|
var context = new DataSeedContext(tenantId) |
||||
|
.WithProperty("AdminEmail", input.AdminEmailAddress) |
||||
|
.WithProperty("AdminPassword", input.AdminPassword); |
||||
|
|
||||
|
return seeder.SeedAsync(context); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue