Top "Linq-to-entities" questions

This tag is for questions about LINQ to Entities, which means LINQ queries using the ADO.

Include Grandchildren in EF Query

Given the object hierarchy public class Parent { public int Id { get; set; } public virtual Child Child { get; set; } } public class …

entity-framework linq-to-entities
LINQ Dynamic Query Library

I am building an ASP.Net MVC 3 application with Entity Framework 4. When the two pieces of code below are executed, …

entity-framework-4 asp.net-mvc-3 jqgrid linq-to-entities dynamic-linq
Left Outer Join via Linq To Entities via Entity Framework with Where clause

I have read all the posts related to implementing the equivalent of a LEFT OUTER JOIN in Linq to Entities (.…

entity-framework linq-to-entities left-join outer-join
Initializing strongly typed objects in LINQ to Entities

I have a plain old CLR object which is essentially a wrapper for two entity framework objects, I'm doing this …

linq entity-framework linq-to-entities strong-typing
How to write LINQ IN clause query which will work as LIKE operator as well?

How we can write a LINQ query for following select sql query: string brandid="1,2,3" string bodystyleid="1,2,3" ------------------- ----------------- select * from …

linq entity-framework linq-to-entities sql-like in-clause
Linq to entities - how to select entities with a where condition on their entitycollection?

I found several times people asking for the same question but it seems that the answer was never satisfying altough …

entity-framework linq-to-entities one-to-many eager-loading entitycollection
DbSet<T>.Include() causes SELECT N+1 when used in extension method

I have an extension on IQueryable that allows passing in delimited string of property names which, when used causes query …

entity-framework linq-to-entities dynamic-linq objectquery
Remove spaces in string before comparison

I want to get Contacts based on phone number, but in Ms Dynamics phone numbers are stored in all kinds …

c# linq linq-to-entities dynamics-crm dynamics-crm-online
LINQ to Entities StringConvert(double)' cannot be translated to convert int to string

Problem Need to convert int to string using EF4 + SQL CE4. The recommended option of using SqlFunctions.StringConvert(double) still …

entity-framework-4 linq-to-entities sql-server-ce-4