public static void Initialize(MapContext context) { context.Database.EnsureCreated(); var gridCells = GetGridCells(); var clusters = GetAllClusters(); var servers = GetAllServers(gridCells); context.AddRange(gridCells); context.AddRange(clusters); context.AddRange(servers); context.SaveChanges(); }