This commit is contained in:
2020-12-02 19:45:00 +00:00
parent 1dc680f296
commit 98253526f7
3 changed files with 41 additions and 7 deletions

View File

@@ -285,7 +285,7 @@ namespace AyaNova.Util
//CUSTOMERS
await GenSeedCustomerAsync(log, 500);
//HEAD-OFFICES
//HEAD-OFFICES
await GenSeedHeadOfficeAsync(log, 20);
//PERF
@@ -359,7 +359,7 @@ namespace AyaNova.Util
//CUSTOMERS
await GenSeedCustomerAsync(log, 5000);
//HEAD-OFFICES
//HEAD-OFFICES
await GenSeedHeadOfficeAsync(log, 30);
//PERF
@@ -433,7 +433,7 @@ namespace AyaNova.Util
//CUSTOMERS
await GenSeedCustomerAsync(log, 20000);
//HEAD-OFFICES
//HEAD-OFFICES
await GenSeedHeadOfficeAsync(log, 40);
//PERF
@@ -586,8 +586,12 @@ namespace AyaNova.Util
public async Task GenSeedUserAsync(ILogger log, int count, AuthorizationRoles roles, UserType userType,
bool active = true, string login = null, string password = null, long translationId = 0, List<string> tags = null, long? vendorId = null, long? customerId = null, long? headofficeId = null)
public async Task GenSeedUserAsync(
ILogger log, int count, AuthorizationRoles roles, UserType userType,
bool active = true, string login = null, string password = null,
long translationId = 0, List<string> tags = null,
long? vendorId = null, long? customerId = null, long? headofficeId = null
)
{
if (translationId == 0)
translationId = ServerBootConfig.AYANOVA_DEFAULT_TRANSLATION_ID;