A LINQ to Entities Starting Point
LINQ to Entities LINQ to Entities provides Language-Integrated Query (LINQ) support that enables developers to write queries against the Entity Framework... [read more]
GroupBy then Take in LINQ to Entities?
Let’s say I have the following items: ID Category Name1 Fruit Banana 2 Car Mescedes 3 Fruit Blackberry 4 Fruit Mango 5 Car Lexus 6 Fruit Melon 7 Car BMW 8 Car... [read more]
LINQ to Entities integer division incorrect?
I’m trying to do a little partitioning, dividing list entries into 6-month blocks. Using this LINQ to Entities query, I get results that imply that integer di... [read more]
Linq to entities does not recognize my entity types
I have a problem when creating an entity model from scratch. I successfully design my objects and generate the database creation. But when I try to make a linq ... [read more]
Can this SQL be done in LINQ ?
i have a simple SQL query, but im struggling to replicate in LINQ select top 1 * from tbl_CarTax tax ORDER BY ABS(tax.C02_From - 286.0) i have tried this below ... [read more]
LINQ to entities comparing collections
I’m having issues with a Linq query that will actually do what I need it to. I’ve constructed a search that needs to find articles in a database (entity fra... [read more]
InvocationExpression and LINQ to Entities
I talked a little bit about patterns using InvocationExpression in a previous post (you might want to review the post for some context). It turns out my advice ... [read more]
LINQ to SQL vs LINQ to Entities - decisions from ADO.NET team
To make a long story short: the ADO.NET team is now responsible of ADO.NET Entity Framework (including LINQ to Entities) and of LINQ to SQL (the last one was or... [read more]
LINQ to SQL vs LINQ to Entities - decisions from ADO.NET team
To make a long story short: the ADO.NET team is now responsible of ADO.NET Entity Framework (including LINQ to Entities) and of LINQ to SQL (the last one was or... [read more]
Why is Linq to Entities so slow the first time it's referenced
using Entity Framework 4.0, it seems that the first time an operation is done (read or write) against an entity framework object context it takes orders of magn... [read more]