No connection string named ” could be found in the ASP.NET MVC application config file: Solved

While working on an ASP.NET MVC application I encountered the following error. It clearly says that some connection string is missing in the configuration file. Well I have refactored the application following the onion architecture and there is nothing related to database exist in the MVC project. Project structure looks like follows: The Entity Framework … Continue reading No connection string named ” could be found in the ASP.NET MVC application config file: Solved

Resolving Dependencies in ASP.NET MVC 5 using StructureMap

If you are using StructreMap to resolve the dependencies in the ASP.NET MVC 5 application then Steve Smith’s blog post Resolving Dependencies in ASP.NET MVC 5 with StructureMap can be a great help for you. I have followed Steve’s blog to use the StructureMap. I am summarizing the steps as follows: Using the Nuget Package … Continue reading Resolving Dependencies in ASP.NET MVC 5 using StructureMap

How to view the generated SQL Query of LINQ

Have you ever thought of viewing generated SQL query of LINQ you write? You may need the generated query for the debugging and the logging purposes. In this post let us see how to print the generated SQL query on the console. Let us consider you have written LINQ as follows: You can print the … Continue reading How to view the generated SQL Query of LINQ