-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDatabase.cs
41 lines (34 loc) · 1.24 KB
/
Database.cs
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
using System;
using System.Diagnostics;
//using MySql.Data.MySqlClient;
namespace Maussoft.Mvc
{
public class Database
{
//private string _connectionString;
public Database(string connectionString)
{
//_connectionString = connectionString;
//Trace.Listeners.Add(new ConsoleTraceListener());
//MySqlTrace.
//http://www.codeproject.com/Articles/19982/Port-Writer-Trace-Listener-for-NET-Applications
//http://docs.oracle.com/cd/E17952_01/connector-net-en/connector-net-programming-tracing.html
//TraceSource ts = new TraceSource("mysql");
//ts.Switch = new SourceSwitch("MySwitch", "Verbose");
//ts.Listeners.Add(new ConsoleTraceListener());
//ts.Flush();
//ts.Close();
}
public object Select(string query)
{
//MySqlCommand m = new MySqlCommand (query);
//m.Parameters.AddWithValue ("0", 0);
//m.Parameters.AddWithValue ("1", 1);
//MySqlDataReader r = m.ExecuteReader();
//if (r.HasRows)
// level = Convert.ToInt32(r.GetValue(0).ToString());
//r.Close();
return new object();
}
}
}