Miscellaneous changes. Keep original end of line characters.

This commit is contained in:
2015-06-07 01:52:30 +02:00
parent ae8ce4a213
commit 7983598bbe
43 changed files with 4038 additions and 3839 deletions

View File

@@ -0,0 +1,19 @@
using System;
using System.Xml.Serialization;
namespace ServerExplorer.Code.DataTransfer
{
[Serializable]
class Column
{
[XmlAttribute]
public string Name { get; set; }
[XmlAttribute]
public string Type { get; set; }
[XmlAttribute]
public int Size { get; set; }
[XmlAttribute]
public bool PK { get; set; }
}
}

View File

@@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
namespace ServerExplorer.Code.DataTransfer
{
[Serializable]
class Database
{
[XmlAttribute]
public string Name { get; set; }
[XmlAttribute]
public DateTime CreateDate { get; set; }
private readonly List<Table> _tables = new List<Table>();
[XmlArray]
public List<Table> Tables
{
get { return _tables; }
}
}
}

View File

@@ -0,0 +1,34 @@
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
namespace ServerExplorer.Code.DataTransfer
{
[Serializable]
internal class Server
{
[XmlAttribute]
public string Name { get; set; }
[XmlAttribute]
public string Instance { get; set; }
[XmlAttribute]
public string Version { get; set; }
private readonly List<User> _users = new List<User>();
[XmlArray]
public List<User> Users
{
get { return _users; }
}
private readonly List<Database> _databases = new List<Database>();
[XmlArray]
public List<Database> Databases
{
get { return _databases; }
}
}
}

View File

@@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
namespace ServerExplorer.Code.DataTransfer
{
[Serializable]
class Table
{
[XmlAttribute]
public string Schema { get; set; }
[XmlAttribute]
public string Name { get; set; }
private readonly List<Column> _columns = new List<Column>();
[XmlArray]
public List<Column> Columns
{
get { return _columns; }
}
}
}

View File

@@ -0,0 +1,18 @@
using System;
using System.Xml.Serialization;
namespace ServerExplorer.Code.DataTransfer
{
[Serializable]
class User
{
[XmlAttribute]
public bool ImplicitUser { get; set; }
[XmlAttribute]
public string UserName { get; set; }
[XmlAttribute]
public string Password { get; set; }
}
}