This commit is contained in:
@@ -19,8 +19,13 @@ namespace AyaNova.Util
|
|||||||
|
|
||||||
public Seeder()
|
public Seeder()
|
||||||
{
|
{
|
||||||
|
System.Diagnostics.Trace.WriteLine("Seeder's constructor is called.");
|
||||||
Fake = new Faker();
|
Fake = new Faker();
|
||||||
}
|
}
|
||||||
|
~Seeder()
|
||||||
|
{
|
||||||
|
System.Diagnostics.Trace.WriteLine("Seeder's destructor is called.");
|
||||||
|
}
|
||||||
|
|
||||||
public static class Level
|
public static class Level
|
||||||
{
|
{
|
||||||
@@ -747,7 +752,7 @@ namespace AyaNova.Util
|
|||||||
{
|
{
|
||||||
//this is 4 times slower than doing it inside the loop below
|
//this is 4 times slower than doing it inside the loop below
|
||||||
//seems counterintuitive but maybe it's to do with the db context not being refreshed?
|
//seems counterintuitive but maybe it's to do with the db context not being refreshed?
|
||||||
|
|
||||||
//RANDOM ROLES
|
//RANDOM ROLES
|
||||||
Array values = Enum.GetValues(typeof(UserType));
|
Array values = Enum.GetValues(typeof(UserType));
|
||||||
Random random = new Random();
|
Random random = new Random();
|
||||||
|
|||||||
Reference in New Issue
Block a user