Пример #1
0
        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;
            }
        }
Пример #2
0
 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;
     }
 }