/[AnywhereTS-MSSQL]/trunk/AnywhereTS.DBSupport/DBConnector.cs
ViewVC logotype

Diff of /trunk/AnywhereTS.DBSupport/DBConnector.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 89 by william, Fri Jul 13 22:56:50 2012 UTC revision 116 by william, Sat Jul 14 08:03:33 2012 UTC
# Line 34  namespace AnywhereTS.DBSupport Line 34  namespace AnywhereTS.DBSupport
34          where DBDataAdapter : DbDataAdapter, new()          where DBDataAdapter : DbDataAdapter, new()
35      {      {
36    
37          public DBConnector(string Address, string Instance, string Database)          public DBConnector(string Server, string Instance, string Database)
38          {          {
39              DBServerAddress = Address;              DBServerAddress = Server;
40              DBServerInstance = Instance;              DBServerInstance = Instance;
41              DBDatabase = Database;              DBDatabase = Database;
42                using (log4net.NDC.Push(string.Format("[Server={0}] [Instance={1}] [Database={2}]", Server, Instance, Database)))
43                {
44                    Logging.DatabaseLog.Debug("Creating DBConnector instance");
45                }
46          }          }
47    
48          public static string GetConnectionString()          public static string GetConnectionString()

Legend:
Removed from v.89  
changed lines
  Added in v.116

  ViewVC Help
Powered by ViewVC 1.1.22