Beispiel #1
0
        public override void Import(string path)
        {
            var languageId = CultureInfo(EanLanguageCode(System.IO.Path.GetFileName(path))).LCID;

            LoadData(path);

            ImportLocalizedAccommodations(EanDataTransferObjects, FactoryOfRepositories.OfLocalized <LocalizedAccommodation>(),
                                          FactoryOfRepositories.MappedProperties <Accommodation>().EanIdsToIds, languageId, CreatorId);

            EanDataTransferObjects = null;
        }
        public override void Import(string path)
        {
            LoadData(path);

            var typesOfAccommodationsEanIdsToIds = ImportTypesOfAccommodations(EanIdsToNames.Keys,
                                                                               FactoryOfRepositories.MappedProperties <TypeOfAccommodation>(), CreatorId);

            ImportLocalizedTypesOfAccommodations(EanIdsToNames,
                                                 FactoryOfRepositories.OfLocalized <LocalizedTypeOfAccommodation>(), typesOfAccommodationsEanIdsToIds, DefaultLanguageId,
                                                 CreatorId);

            EanIdsToNames = null;
        }
Beispiel #3
0
        public override void Import(string path)
        {
            LoadData(path);

            if (Chains.Count <= 0)
            {
                return;
            }

            LogSave <Chain>();
            FactoryOfRepositories.MappedProperties <Chain>().BulkSave(Chains);
            LogSaved <Chain>();

            Chains = null;
        }