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,29 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using ServerExplorer.Code.DataTransfer;
namespace ServerExplorer.Code.DataAccess
{
class DatabaseDA
{
public static List<Database> Database_GetRegs(string conexionString)
{
var databases = new List<Database>();
var cnx = new SqlConnection(conexionString);
cnx.Open();
DataTable dt = cnx.GetSchema("Databases");
cnx.Close();
foreach (DataRow dr in dt.Rows)
{
databases.Add(new Database
{
Name = (String) dr["database_name"],
CreateDate = (DateTime) dr["create_date"]
});
}
return databases;
}
}
}