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

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

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

--- trunk/AnywhereTS.DBSupport/SqlMdfConnector.cs	2012/07/14 13:16:38	130
+++ trunk/AnywhereTS.DBSupport/SqlMdfConnector.cs	2012/07/15 02:55:20	131
@@ -10,7 +10,7 @@
     {        
         public SqlMdfConnector(string DBServerAddress, string DBServerInstance, string SqlMdf) : base(DBServerAddress, DBServerInstance, SqlMdf) { }
 
-        public override void CreateConnection(out Exception ErrorInfo)
+        public override SqlConnection CreateConnection(out Exception ErrorInfo)
         {
             ErrorInfo = null;
             try
@@ -19,6 +19,7 @@
                 connetionString = GetConnectionString();
                 connection = new SqlConnection();
                 connection.ConnectionString = connetionString;
+                return connection;
             }
             //catch (SqlException ex) { Console.WriteLine(ex.ToString()); ErrorInfo = ex;  throw ErrorInfo;}
             catch (Exception ex) { Console.WriteLine(ex.ToString()); ErrorInfo = ex; throw ErrorInfo; }

 

  ViewVC Help
Powered by ViewVC 1.1.22