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…

Read More

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…

Read More

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…

Read More

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…

Read More

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…

Read More

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…

Read More