/[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

--- trunk/AnywhereTS.DBSupport/DBConnector.cs	2012/07/13 22:56:50	89
+++ trunk/AnywhereTS.DBSupport/DBConnector.cs	2012/07/14 08:03:33	116
@@ -34,11 +34,15 @@
         where DBDataAdapter : DbDataAdapter, new()
     {
 
-        public DBConnector(string Address, string Instance, string Database)
+        public DBConnector(string Server, string Instance, string Database)
         {
-            DBServerAddress = Address;
+            DBServerAddress = Server;
             DBServerInstance = Instance;
             DBDatabase = Database;
+            using (log4net.NDC.Push(string.Format("[Server={0}] [Instance={1}] [Database={2}]", Server, Instance, Database)))
+            {
+                Logging.DatabaseLog.Debug("Creating DBConnector instance");
+            }
         }
 
         public static string GetConnectionString()

 

  ViewVC Help
Powered by ViewVC 1.1.22