コード例 #1
0
        public void DeleteAll()
        {
            foreach (var country in Countries.ToArray())
            {
                Countries.Remove(country);
            }

            foreach (var province in ProvinceStates.ToArray())
            {
                ProvinceStates.Remove(province);
            }

            SaveChanges();
        }