Top "Linq-to-entities" questions

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

Conditional Include() in Entity Framework

I have seen a few answers to similar questions, however I cannot seem to work out how to apply the …

c# entity-framework linq linq-to-entities
What is difference between .edmx and .dbml file in linq?

What is difference between .edmx and .dbml file in linq?In VS 2008 which datasource is best choice where edmx or …

linq linq-to-sql entity-framework linq-to-entities
How to use SQL 'LIKE' with LINQ to Entities?

I have a textbox that allows a user to specify a search string, including wild cards, for example: Joh* *Johnson *…

c# sql linq-to-entities
Joining three tables and using a left outer join

I have three tables. Two of them join equally but one will need to join with a left. I'm finding …

linq linq-to-entities linq-to-objects
Linq to Entities, random order

How do i return matching entities in a random order? Just to be clear this is Entity Framework stuff and …

c# entity-framework linq-to-entities
Cannot implicitly convert type 'System.Collections.Generic.List<T>' to 'System.Linq.IQueryable<T>'

I am trying to create a query in my domain service (VS 2010 Silverlight Business Application) that returns the results from …

c# visual-studio-2010 linq-to-entities hierarchical-data silverlight-5.0
String.IsNullOrWhiteSpace in LINQ Expression

I have the following code: return this.ObjectContext.BranchCostDetails.Where( b => b.TarrifId == tariffId && b.Diameter == diameter || (…

c# linq lambda null linq-to-entities
Only parameterless constructors and initializers are supported in LINQ to Entities message

I have a method that returns data from an EF model. I'm getting the above message, but I can't wotk …

c# linq linq-to-entities
How do I delete an object from an Entity Framework model without first loading it?

I am quite sure I've seen the answer to this question somewhere, but as I couldn't find it with a …

asp.net-mvc entity-framework linq-to-entities
How to do a Bulk Insert -- Linq to Entities

I cannot find any examples on how to do a Bulk/batch insert using Linq to Entities. Do you guys …

c# asp.net-mvc entity-framework linq-to-entities