In this post I will show you to use DebugView to log the Entity Framework. For detail discussion on the same topic you may want to learn more here: Logging in Entity Framework on Steve Smith Blog Profiling Database Activity in the Entity Framework by Julie Lerman Download DebugView , unzip it and Run it … Continue reading How to use DebugView to Log Entity Framework
Month: September 2014
Work with ASP.NET MVC 5 Areas from different projects
Read full article on Falafel blog While working on an ASP.NET MVC 5 application, I came across a requirement to use an Area from one project in another project. For example: I have a project A and a project B. I need to use an Area which is part of project B inside of project … Continue reading Work with ASP.NET MVC 5 Areas from different projects
Using AutoMapper : Getting Started
Read full article on Falafel blog I have often seen developers use the LINQ SELECT statement to create a new instance of one class from an existing instance of another class. There are many scenarios when you may have to do this, for example: Creating the domain class instance from the entity class instance Creating … Continue reading Using AutoMapper : Getting Started
Walkthrough: Login with Twitter Account in ASP.NET MVC 5 APP using ASP.NET Identity 2.0
Walkthrough: Login with Twitter Account in ASP.NET MVC 5 APP using ASP.NET Identity 2.0
User Instance login flag is not allowed when connecting to a SQL Server instance: Solved
While working with an ASP.NET MVC application I encountered following exceptions: Exception clearly says that user instance login flag is not allowed when connecting to a SQL Server instance. For sure this error is related to SQL Server instance I am working on in this particular application. I examined the connection string in the web.config … Continue reading User Instance login flag is not allowed when connecting to a SQL Server instance: Solved
Three simple steps to use Kendo UI Web in ASP.NET MVC 5
As we seen in this post that working with Kendo UI Web widgets are as simple as following above three steps: Add reference of Kendo UI Web Create the bundles Add bundles reference in layout page
Video : Getting started with the Automapper in C-Sharp
This video will help you in getting started with the Automapper. Please give feedback in comment to improve further https://www.youtube.com/watch?v=KJ_sM8WdDGM&feature=youtu.be
Keep your code DRY
Other day my Boss was reviewing the code written by me. He had a feedback, keep the code DRY. It was great feedback, and I thought why not to share with you that what does DRY mean? DRY stands for Do not Repeat Yourself. To understand it better let is consider below code snippet: I … Continue reading Keep your code DRY
Understanding IEnumerable and IQueryable in C#
I see developers are not that confident about usage of the mentioned interfaces. In this post, I am going to discuss basic differences among IEnumerable and IQueryable and in which scenario to use what
Refactoring the ASP.NET MVC Application to the Onion Architecture
We have refactored the application adhering to the onion architecture. Domain objects like Movie is at the center of the architecture and are the part of internal layers. The Infrastructure project in which we are working with database and database logics are part of the external layers. They depend on the centeral layers like core. UI or in this case the MVC application is also an external layer and depndes on the Core project. All layers are interacting to each other using the interfaces rather than the concrete definitions. You can very easily write Unit Test against the controllers using Fake or Mock without hitting the datbase. In future you can easily change data access technology from Enity Framework to something else without affecting the UI and the Core.