Monday, 16 September 2013
Saturday, 14 September 2013
WebServices And Windows Services
Can you give an example of when it would be appropriate to use a web service as opposed to non-serviced .NET component
Web service is one of main component in Service Oriented Architecture. You could use web services when your clients and servers are running on different networks and also different platforms. This provides a loosely coupled system. And also if the client is behind the firewall it would be easy to use web service since it runs on port 80 (by default) instead of having some thing else in Service Oriented Architecture applications.
What is the standard you use to wrap up a call to a Web service
My this article provides a collection of numerous .Net, C#, ADO.NET, Web Services, .Net Framework questions and answers for which a reader has to look around for entire internet on different community web sites. Most of the questions and answers you must have already read. The purpose of this article is to consolidate at the most study material related to .Net at one single place.
Tuesday, 3 September 2013
A Practical Approach: MVC3 Interview Questions and Answers: Introduction: My this article on Interview Questions and Answers of MVC basically covers most of the MVC 2, MVC3 and MVC4 topics that ar...
A Practical Approach: C# and ASP.Net Interview Question and Answers: What is the significance of Finalize method in .NET? .NET Garbage collector does almost all clean up activity for your objects. But...
Creating a Generic Repository pattern in an MVC3 application with Entity Framework is the last topic that we are about to cover in our journey of learning MVC.
The article will focus on Unit of Work Pattern and Repository Pattern, and shows how to perform CRUD operations in an MVC application when there could be a possibility of creating more than one repository class. To overcome this possibility and overhead, we make a Generic Repository class for all other repositories and implement a Unit of Work pattern to provide abstraction.
In our last four articles, we learnt almost everything about how to create an MVC application and how to communicate with database using the same application.
In the third part of learning MVC, we learnt communication between MVC application and database using
EntityFramework, so I am referring to the same context. In this article, I’ll focus on how to implement a Repository Pattern in the same MVC application, therefore moving ahead a step towards architectural approach of developing an enterprise application.
In our first three articles, we learnt a lot about MVC, starting from definition to use, from creating an application to connecting the MVC application with database using different techniques.
In the very last part of the series, we learnt how to connect our MVC application with existing database using Entity Framework.
This article will focus on connecting our MVC application with database using CodeFirst approach, i.e., one of the features Microsoft’s Entity Framework provides.