forked from sergiisyrovatchenko/SQLIndexManager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHost.cs
More file actions
44 lines (31 loc) · 747 Bytes
/
Copy pathHost.cs
File metadata and controls
44 lines (31 loc) · 747 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
namespace SQLIndexManager {
[Serializable]
public class Host {
[XmlAttribute]
public string Server;
[XmlAttribute]
public AuthTypes AuthType;
[XmlAttribute]
public string User;
[XmlAttribute]
public string Password;
[XmlElement]
public List<string> Databases;
[XmlIgnore]
public bool IsUserConnection;
[XmlIgnore]
public bool SavePassword;
[XmlIgnore]
public ServerInfo ServerInfo;
public Host() {
AuthType = AuthTypes.Windows;
Databases = new List<string>();
}
public override string ToString() {
return $"{Server} | {ServerInfo.Version}";
}
}
}