public Seeder(ShopDbContext context, CountryLoader countryLoader, IRandomDataGenerator randomDataGenerator) { this.context = context; this.countryLoader = countryLoader; this.randomDataGenerator = randomDataGenerator; this.customers = new List <ApplicationUser>(); }
public DataGenerator(IRandomDataGenerator randomDataGenerator, CompanyEntities companyEntities, int countOfGeneratedObjects, IConsoleLogger consoleLogger) { this.random = randomDataGenerator; this.db = companyEntities; this.count = countOfGeneratedObjects; this.logger = consoleLogger; }
public ToyGeneratorsFactory(IRandomDataGenerator random, ILogger logger, ToyStoreEntities databaseContext, int checkPointFrequency = 1000) { this.random = random; this.logger = logger; this.databaseContext = databaseContext; this.checkPointFrequency = checkPointFrequency; }
public DataGenerator(IRandomDataGenerator randomDataGenerator, ToysStoreEntities toysStoreEntities, int countOfGeneratedObjects, IConsoleLogger consoleLogger) { this.random = randomDataGenerator; this.db = toysStoreEntities; this.count = countOfGeneratedObjects; this.logger = consoleLogger; }
protected DataGenerator(int count, IRandomDataGenerator random, ILogger logger, int checkPointFrequency = 1000) { this.CheckPointFrequency = checkPointFrequency; this.Count = count; this.Logger = logger; this.Random = random; }
private static void AddManagers(IRandomDataGenerator random, CompanyEntities db) { var employeeIDs = db.Employees.Select(c => c.ID).ToList(); int i = 0; foreach (var employee in db.Employees) { if (random.GetRandomNumber(0, employeeIDs.Count - 1) < 95 * employeeIDs.Count / 100) { var managerID = random.GetRandomNumber(1, employeeIDs.Count - 1); while (managerID == i) { managerID = random.GetRandomNumber(1, employeeIDs.Count - 1); } employee.ManagerID = managerID; db.SaveChanges(); } i++; } }
public DataGenerator(IRandomDataGenerator random, ContactDbContext contacts, int numberToGenerate) { this.random = random; this.db = contacts; this.count = numberToGenerate; }
public ManufacturerGenerator(IRandomDataGenerator randomGenerator, ToyStoreEntities db, int count) : base(randomGenerator, db, count) { }
public AgeRangesSeeder(ToyStoreEntities db, IRandomDataGenerator ran, int count) : base(db, ran, count) { }
public ProjectDataGenerator(IRandomDataGenerator randomDataGenerator, CompanyEntities companyEntities, int countOfGeneratedObjects) :base(randomDataGenerator, companyEntities, countOfGeneratedObjects) { }
public DataGenerator(IRandomDataGenerator randomDataGenerator, ToysStoreEntities toyStoreEntities, int countOfGeneratedObjects) { this.random = randomDataGenerator; this.db = toyStoreEntities; this.count = countOfGeneratedObjects; }
public ManufacturerSeeder(ToyStoreEntities db, IRandomDataGenerator ran, int count) : base(db, ran, count) { }
public DataGenerator(IRandomDataGenerator randomDataGenerator, CompanyEntities companyEntities, int countOfGeneratedEntities) { this.random = randomDataGenerator; this.db = companyEntities; this.count = countOfGeneratedEntities; }
public DepartmentDataGenerator(IRandomDataGenerator randomDataGenerator, CompanyEntities companyEntities, int countOfGeneratedObjects, IConsoleLogger consoleLogger) : base(randomDataGenerator, companyEntities, countOfGeneratedObjects, consoleLogger) { }
public EmployeeDataGenerator(IRandomDataGenerator randomDataGenerator, CompanyEntities toyStoreEntities, int countOfGeneratedObjects) :base(randomDataGenerator, toyStoreEntities, countOfGeneratedObjects) { }
public DataGenerator(IRandomDataGenerator randomGenerator, StudentSystemCFEntities database, int numberToGenerate) { this.random = randomGenerator; this.db = database; this.count = numberToGenerate; }
public DepartmentDataGenerator(IRandomDataGenerator randomDataGenerator, CompanyEntities companyEntities, int countOfGeneratedEntities) : base(randomDataGenerator, companyEntities, countOfGeneratedEntities) { }
public ManufacturerDataGenerator(IRandomDataGenerator randomDataGenerator, ToyStoreEntities toyStoreEntities, int countOfGeneratedOnjects) : base(randomDataGenerator, toyStoreEntities, countOfGeneratedOnjects) { }
public AgeRangeGenerator(int count, IRandomDataGenerator random, ILogger logger, ToyStoreEntities databaseContext, int checkPointFrequency = 1000) : base(count, random, logger, checkPointFrequency) { this.databaseContext = databaseContext; }
public ProjectDataGenerator(IRandomDataGenerator randomDataGenerator, CompanyEntities companyEntities, int countOfGeneratedEntities) : base(randomDataGenerator, companyEntities, countOfGeneratedEntities) { }
public DataGenerator(IToysStoreEntities toysStoreEntities, IRandomDataGenerator randomDataGenerator) { this.db = toysStoreEntities; this.random = randomDataGenerator; }
public CardNumberDataGenerator(IRandomDataGenerator randomDataGenerator, ATMEntities atmEntities, int countGeneratedObjects) : base(randomDataGenerator, atmEntities, countGeneratedObjects) { }
public ReportsDataGenerator(IRandomDataGenerator randomDataGenerator, CompanyEntities companyEntities, int countOfGeneratedEntities) : base(randomDataGenerator, companyEntities, countOfGeneratedEntities) { }
public SeederFactory(ToyStoreEntities db, IRandomDataGenerator ran) { this.db = db; this.ran = ran; }
public AgeRangeDataGenerator(IRandomDataGenerator randomGenerator, ToysStoreEntities toysStoreEntities, int countOfGeneratedObjects) : base(randomGenerator, toysStoreEntities, countOfGeneratedObjects) { }
public DataGenerator(IRandomDataGenerator randomDataGenerator, ATMEntities atmEntities, int countGeneratedObjects) { this.random = randomDataGenerator; this.db = atmEntities; this.count = countGeneratedObjects; }
public ReportDataGenerator(IRandomDataGenerator randomDataGenerator, CompanyEntities companyEntities, int countOfGeneratedObjects) : base(randomDataGenerator, companyEntities, countOfGeneratedObjects) { }
public SampleDataGenerator(CompanyEntities companyEntitiesDbContext, IRandomDataGenerator randomDataGenerator, ILogger logger) { this.database = companyEntitiesDbContext; this.random = randomDataGenerator; this.logger = logger; }
public EmployeesProjectsDataGenerator(IRandomDataGenerator randomDataGenerator, CompanyEntities companyEntities, int countOfGeneratedObjects) : base(randomDataGenerator, companyEntities, countOfGeneratedObjects) { }
public DataGenerator(IRandomDataGenerator randomGenerator, ToyStoreEntities db, int count) { this.randomGenerator = randomGenerator; this.db = db; this.count = count; }
public ToyStoreSeeder(ToyStoreEntities db, IRandomDataGenerator ran, int count) { this.ran = ran; this.db = db; this.count = count; }
public CategoryDataGenerator(IRandomDataGenerator randomDataGenerator, ToyStoreEntities toyStoreEntities, int countOfGeneratedOnjects) : base(randomDataGenerator, toyStoreEntities, countOfGeneratedOnjects) { }
public CategoryDataGenerator(IRandomDataGenerator randomDataGenerator, ToysStoreEntities toyStoreEntities, int countOfGeneratedObjects) :base(randomDataGenerator, toyStoreEntities, countOfGeneratedObjects) { }
public AgeRangeDataGenerator(IRandomDataGenerator randomDataGenerator, ToysStoreEntities toyStoreEntities, int countOfGeneratedObjects) : base(randomDataGenerator, toyStoreEntities, countOfGeneratedObjects) { }
public EmployeeGenerator(int count, IRandomDataGenerator random, ILogger logger, CompanyEntities databaseContext, int checkPointFrequency = 1000) : base(count, random, logger, checkPointFrequency) { this.databaseContext = databaseContext; }
public CategoryGenerator(IRandomDataGenerator randomGenerator, ToyStoreEntities db, int count) : base(randomGenerator, db, count) { }
public ReportsSampleDataGenerator(CompanyEntities companyEntitiesDbContext, IRandomDataGenerator randomDataGenerator, ILogger logger) : base(companyEntitiesDbContext, randomDataGenerator, logger) { }
public OrderDataGenerator(IRandomDataGenerator randomDataGenerator, ordersEntities entities, int ordersCount) { this.random = randomDataGenerator; this.db = entities; this.count = ordersCount; }
public AgeRangeGenerator(IRandomDataGenerator randomGenerator, ToyStoreEntities db, int count) : base(randomGenerator, db, count) { }
public StudentDataGenerator(IRandomDataGenerator randomGenerator, StudentSystemCFEntities database, int numberToGenerate) : base(randomGenerator, database, numberToGenerate) { }
public CategoryDataGenerator(IRandomDataGenerator randomDataGenerator, ToysStoreEntities toysStoreEntities, int countOfGeneratedObjects, IConsoleLogger consoleLogger) : base(randomDataGenerator, toysStoreEntities, countOfGeneratedObjects, consoleLogger) { }
public EmployeeDataGenerator(IRandomDataGenerator randomDataGenerator, CompanyEntities toyStoreEntities, int countOfGeneratedObjects) : base(randomDataGenerator, toyStoreEntities, countOfGeneratedObjects) { }
public EmployeeDataGenerator(IRandomDataGenerator randomDataGenerator, CompanyEntities companyEntities, int countOfgeneratedObjects) { this.random = randomDataGenerator; this.db = companyEntities; this.count = countOfgeneratedObjects; }
public Worker(ILogger <Worker> logger, IRandomDataGenerator dataGenerator) { _logger = logger; _dataGenerator = dataGenerator; }
public ContentFactory(IRandomDataGenerator randomDataGenerator) { this.randomGenerator = randomDataGenerator; }
public AgeRangesDataGenerator(IToysStoreEntities toysStoreEntities, IRandomDataGenerator randomDataGenerator) : base(toysStoreEntities, randomDataGenerator) { }
public ContactInfoGenerator(IRandomDataGenerator random, ContactDbContext contact, int count) : base(random, contact, count) { }
public ManufacturerDataGenerator(IRandomDataGenerator randomDataGenerator, ToysStoreEntities toyStoreEntities, int countOfGeneratedObjects) :base(randomDataGenerator, toyStoreEntities, countOfGeneratedObjects) { }
public DepartmentDataGenerator(IRandomDataGenerator randomDataGenerator, CompanyEntities companyEntities, int countOfGeneratedOnjects) : base(randomDataGenerator, companyEntities, countOfGeneratedOnjects) { }