Skip to content

Instantly share code, notes, and snippets.

View A-Programmer's full-sized avatar

Kamran Sadin A-Programmer

View GitHub Profile
@mombrea
mombrea / DbInitializer.cs
Last active April 5, 2023 21:55
EF Core 1.0 and ASP.NET Core Identity Seed Data
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using System.Linq;
namespace My.App.Data
{
public class DbInitializer : IDbInitializer
{
private readonly ApplicationDbContext _context;
private readonly UserManager<ApplicationUser> _userManager;
@hikalkan
hikalkan / AllCultures.cs
Last active July 25, 2026 18:28
All culture codes and corresponding Countries.
public static Dictionary<string, string> AllCultures = new Dictionary<string, string>
{
{"af", "Afrikaans"},
{"af-ZA", "Afrikaans - South Africa"},
{"ar", "Arabic"},
{"ar-AE", "Arabic - United Arab Emirates"},
{"ar-BH", "Arabic - Bahrain"},
{"ar-DZ", "Arabic - Algeria"},
{"ar-EG", "Arabic - Egypt"},
{"ar-IQ", "Arabic - Iraq"},