Esempio n. 1
0
 public DbSettings GetSettings()
 {
     DbSettings dbSettings = new DbSettings();
     dbSettings.ServerIP = "Teszt adatbázis";
     return dbSettings;
 }
Esempio n. 2
0
 //Vagy a kölcsönzés mentése vagy a lezárás vagy az újranyitás duplikálja a toolt!!!!!!!!
 public static DbSettingsRepresentation convertDbSettings(DbSettings settings)
 {
     return new DbSettingsRepresentation()
     {
         ApplicationName = settings.ApplicationName,
         InitialCatalog = settings.InitialCatalog,
         IntegratedSecurity = settings.IntegratedSecurity,
         MetaData = settings.MetaData,
         MultipleActiveResultSets = settings.MultipleActiveResultSets,
         Password = settings.Password,
         PersistSecurityInfo = settings.PersistSecurityInfo,
         primaryBackupPath = settings.primaryBackupPath,
         Provider = settings.Provider,
         secondaryBackupPath = settings.secondaryBackupPath,
         ServerInstanceName = settings.ServerInstanceName,
         ServerIP = settings.ServerIP,
         UserName = settings.UserName
     };
 }