Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
Entity Framework

Featured

Solution for "Self referencing loop detected" error in Entity Framework

Few days ago, I was creating an ASP.NET Web API by generating Entity Framework scaffolding API controller. There were simply two tables in the database Product and Title. In the edmx file, the auto-generated classes were as follows:   ...

Code-First Stored Procedure Entity Framework 6.0

Code-First Stored Procedure Entity Framework 6.0   This blog shows configuration of code first making use of stored procedure for the entities. For usage of stored procedure, the OnModelCreating method of DBContext should be overriden,...

An MVC application with Entity framework with Code First Approach

An MVC application with Entity framework with Code First Approach   Following steps are to be followed :   Step 1 : In visual studio 2015 create a new C# ASP.NET Web project named Student_Management_System. Select the MVC te...

How to use IN keyword in LINQ

In SQL Server, we are very familiar with IN keyword and we use this keyword in many times which is very helpful for us. It save our extra efforts and code line like below query.     To achieve this in LINQ , we heve below t...

Using transaction in Entity framework 6

When we need to perform mutiple operations on an object in database or on multiple objects, then using transaction is considered a good practice as it maintains data consistency Here is the sample code of how we can use transaction in EF ...

Deleting a list of objects in Entity Framework

Entity framework provides numerous ways to batch delete the objects from Database. Below are the step for way 1 : Load objects that has to be deleted in memory. Remove the objects from context And then save these changes. This statemen...

Select n to m records using Entity Framework C#

This is a very common requirement for Mobile app developers who use APIs to interact with the Data. e.g. You want to show the list of events in an app and you have lots of data for the call at server. If server returns you back with all the data...

Entity FrameWork

Entity Framework Before going through this blog you must be familiar with basic of Asp.net application and Linq expressions. What is Entity Framework? Entity framework is ORM(Object Relational Mapping) which allows to create object and ...
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: