Tag: Entity Framework
Tip of the day: Going quickly to an item in the Entity Model Diagram
After a conversation recently about how difficult it was to find stuff in the EDMX diagram because it can often be a right pigs breakfast, I stumbled across...
Getting Entity Framework to Pick up on the Auto-generated Part of the Composite Primary Key
In my previous post, I wrote about how to get SQL Server to automatically generate a composite primary key for a table when part of that key is also a foreign...
Checking for NULL using Entity Framework
Here is a curious gotcha using the Entity Framework: If you are filtering on a value that may be null then you may not be getting back the results you expect....
Getting just the columns you want from Entity Framework
I’ve been looking at trying to optimise the data access in the project I’m working on, and the major stuff (like getting a piece of code that generated 6000...
Entity Framework query that never brings back data
I was recently optimising some data access code using the Entity Framework (EF) and I saw in the SQL Server Profiler this following emanating from the...
Entity Framework: Unable to load the specified metadata resource.
Recently, I was refactoring some code and I moved the location of the .edmx file into a different folder (and new namespace). I updated the code to use the new...
