I am honored to be with you today at your commencement from one of the finest universities in the world. I never graduated from college. Truth be told, this is the closest I’ve ever gotten to a college graduation. Today I want to tell you three stories from my life. That’s it. No big deal…
configure many to many relationship in codefirst
Configure Many-to-Many relationship: Here, we will learn how to configure Many-to-Many relationship between the Student and Course entity classes. Student can join multiple courses and multiple students can join one course. Visit Entity Relationship section to understand how EF manages one-to-one, one-to-many and many-to-many relationships between the entities. Configure Many-to-Many relationship using DataAnnotation: Student class…
Unit-of-Work-Design-Pattern
What is the use of Unit of Work design pattern? Unit of Work design pattern does two important things: first it maintains in-memory updates and second it sends these in-memory updates as one transaction to the database. So to achieve the above goals it goes through two steps: It maintains lists of business objects in-memory…
unit of work in repository pattern
Unit of Work is the concept related to the effective implementation of the Repository Pattern. To understand this concept in better it is important to understand the concept of the Repository Pattern. We will not get into the details of the Repository Pattern in this discussion. But a small idea of this concept is necessary…
entity framework unit of work patterns
Earlier this year I joined a development team which chose Entity Framework for the persistence needs of a new greenfield project. While I’ve worked on a few projects which used Entity Framework here and there over the years, the bulk of my experience has been with NHibernate and, more recently, Dapper.Net. As a result, there…
implementing-the-repository-and-unit-of-work-patterns-in-an-asp-net-mvc-application
In the previous tutorial you used inheritance to reduce redundant code in the Student and Instructor entity classes. In this tutorial you’ll see some ways to use the repository and unit of work patterns for CRUD operations. As in the previous tutorial, in this one you’ll change the way your code works with pages you…
Application cache in Html5
Introduction It’s becoming increasingly important for web-based applications to be accessible offline. Yes, all browsers can cache pages and resources for long periods if told to do so, but the browser can kick individual items out of the cache at any point to make room for other things. HTML5 addresses some of the annoyances of…
Top 10 Most Important Features Of C#
In this article we’ll learn all about C# with some of the best articles on C# Corner which I find most helpful for every C# Developer. Here is the list of the 10 most important things in C#. Advantages of C# Future of C# Abstraction in C# Encapsulation in C# Inheritance in C# Polymorphism in…