예제 #1
0
        public static void InitializeDatabase()
        {
            InitializeConnectionString();

            database = new EntityDataModelESB2Container();
            database.Database.CreateIfNotExists();

            if (!database.Users.Any(u => u.Username.Equals("admin")))
            {
                CreateAdminAccount();
            }
        }