Home  /  Questions  /  Question



50   50
Aug 12, 2014


4.5 connection string.

Good day,

I tried to open patterns in action 4.5 c# version for the first time however the connection string is empty. How to fix this based on dofactory's configuration?



Regards,


Archie JG.


DbConnection CreateConnection()
        {
            // ** Factory pattern in action

            var connection = factory.CreateConnection();
            connection.ConnectionString = connectionString;
            connection.Open();
            return connection;
        }

 



508   99.9
Aug 19, 2014
For anyone interested., this issue has been resolved.  The problem was that  the VS Express edition was used which is not supported. The minimum requirement for the .NET Design Pattern Framework 4.5 is VS Professional or better. 

BTW: If you don't have access to VS Professional you can download a free 90-day trial version from the Microsoft website.

Jack
 1 comment
 
Hi Jack I having the same issue above. I tested the patterns in action 4.5 solution on both VS 2012 ultimate and VS 2013 ultimate with the same error. "The ConnectionString property has not been initialized. " I set the MVC project as the start up project. --- Anthony Ochiche  Nov 16, 2014