Ejemplo n.º 1
0
        public void Save()
        {
            var id = dbBuildingSettings.GetBuildingId(SourceConnectionString, DestinationConnectionString,
                                                      VocabularyConnectionString, Vendor);

            if (id.HasValue)
            {
                Id = id;
                dbBuildingSettings.Update(Id.Value, SourceConnectionString, DestinationConnectionString,
                                          VocabularyConnectionString, Vendor);
            }
            else
            {
                Id = dbBuildingSettings.Create(SourceConnectionString, DestinationConnectionString,
                                               VocabularyConnectionString, Vendor);
            }

            SetVendorSettings();
        }
Ejemplo n.º 2
0
        public void Save()
        {
            var id = _dbBuildingSettings.GetBuildingId(RawSourceConnectionString, RawDestinationConnectionString,
                                                       RawVocabularyConnectionString, Vendor);

            if (id.HasValue)
            {
                Id = id;
                _dbBuildingSettings.Update(Id.Value, RawSourceConnectionString, RawDestinationConnectionString,
                                           RawVocabularyConnectionString, Vendor, BatchSize);
            }
            else
            {
                Id = _dbBuildingSettings.Create(RawSourceConnectionString, RawDestinationConnectionString,
                                                RawVocabularyConnectionString, Vendor, BatchSize);
            }

            SetVendorSettings();
        }