public void SeedData(int count) { //if (!CanSeed) return; //_idSequence = 0; for (int i = 0; i < count; i++) { var num = _idSequence++; _context.Add(new Property { Id = num, RegisterNumber = num, Description = $"Property {num}" }); ++_count; } }
private void DoInsert(int count) { for (int i = 0; i < count; i++) { var prop = new Property() { Id = idSequence, RegisterNumber = idSequence, Description = "Jojo" }; helpStructure.Add(idSequence, prop); hashing.Add(prop); ++idSequence; } }