Tags » Entity Framework

Raw SQL and SqlAzureExecutionStrategy

If you are using Entity Framework to run raw SQL queries directly against the database and are using SqlAzureExecutionStrategy for retrying SQL Azure transient failures, you might be getting “The SqlParameter is already contained by another SqlParameterCollection” exceptions. 43 more words


Entity Framework Combines Forces with AutoMapper to Unleash Evil StackOverflowException

“Our ancestors called it magic but you call it science. I come from a land where they are one and the same.”

– Chris Hemsworth, Thor… 767 more words

Unable to load the specified metadata resource

I ran into this dastardly error while working on a utility to mass-update connection strings: Unable to load the specified metadata resource.

The problem was the Entity Framework connection string. 97 more words


Working with Cascade Delete in Entity Framework

Recently my group and I are working on a .NET Web API project. At some points after defining our design models, view models and the mappings, the… 250 more words

Entity Framework 6 - Bulk Insert and Returning of Generated Primary Keys

Bit of a code dump today. I was tasked with making database insertions quicker. On a good day we have millions of rows which we inserted using the Entity Framework – which is inefficient and done one row at a time. 1,886 more words


How To improve Entity Framework Performance

it is mandatory to know about the performance of it. These are right up to a certain point as LINQ comes with its own penalties. There are some tips and tricks that we should keep in mind while designing and query database using entity framework… 341 more words


Entity Framework + Stored Procedures + Multiple Result Sets = Nightmare?

I’m a big fan of Entity Framework and tend to use it quite often. Lately, I’ve been dealing with a whole lot of integration work, from creating dlls to web services. 152 more words

Web Development