Featured
-
How Regression Testing Detects Integral Errors In Business Processes
Humans are forever changing and evolving and so to
by kristina.rigina -
Get Display Banner Advertising Opportunity on FindNerd Platform
“Do you have a product or service that nee
by manoj.rawat -
Android O Released with Top 7 New Features for App Developers
Android was founded by Andy Rubin, Rich Miner, Nic
by sudhanshu.tripathi -
Top 5 Features That Make Laravel the Best PHP Framework for Development
Laravel is a free open source Web Framework of PHP
by abhishek.tiwari.458 -
Objective C or Swift - Which Technology to Learn for iOS Development?
Swift programming language is completely based on
by siddharth.sindhi
Tags
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 ...