using WikiWaka.Api.Models; public static class DbInit { private static readonly Language[] languages = [ new() { Id = 1, LanguageCode = "nb-NO", }, new() { Id = 2, LanguageCode = "nn-NO", }, new() { Id = 3, LanguageCode = "en-US", }, ]; public static async Task InitializeLanguages(DbWikiWakaContext db) { await db.Language.AddRangeAsync(languages); _ = await db.SaveChangesAsync(); } }