예제 #1
0
 public async Task Seed()
 {
     if (!_context.Beacons.Any())
     {
         _context.AddRange(getInitData(Guid.NewGuid()));
         await _context.SaveChangesAsync();
     }
 }