public static void InitializeDatabase() { InitializeConnectionString(); database = new EntityDataModelESB2Container(); database.Database.CreateIfNotExists(); if (!database.Users.Any(u => u.Username.Equals("admin"))) { CreateAdminAccount(); } }