Ejemplo n.º 1
0
        public async Task SeedAsync(DataSeedContext context)
        {
            var provinceE = new ProvinceEntity("Western");
            var districtE = new DistrictEntity("Colombo", provinceE.Id);
            var cityE     = new CityEntity(districtE.Id)
            {
                CityName    = "Delkanda",
                Geolocation = "6.784568:79.546545"
            };

            await ProvinceRepo.InsertAsync(provinceE);

            await DistrictRepo.InsertAsync(districtE);

            await CityRepo.InsertAsync(cityE);
        }