Top "Linq-to-entities" questions

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

Simple Automapper Example

I am having a hard time to understand how to map certain objects. Please answer some questions about this simple …

c# wcf linq-to-entities automapper
Updating your edmx to reflect changes made in your db (.net linq-to-entities)

So I have my edmx made. Then I change my database a little bit, changing a column to from being …

linq entity-framework .net-3.5 linq-to-entities
Bulk-deleting in LINQ to Entities

Is there any way to bulk-delete a bunch of objects matching a given query in LINQ or LINQ-to-Entities? The only …

c# database linq entity-framework linq-to-entities
Method cannot be translated into a store expression

I saw this code work with LINQ to SQL but when I use Entity Framework, it throws this error: LINQ …

c# entity-framework linq-to-entities repository-pattern
New transaction is not allowed because there are other threads running in the session LINQ To Entity

Any ideas on why this could be breaking? foreach (var p in pp) { ProjectFiles projectFile = (ProjectFiles)p; projectFile.Status = Constants.…

c# linq linq-to-entities
Could not load file or assembly ':This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded

I Hvea 3 projects in my solution: BL, DL and the UI. All three projectshave a target framework of >NET 4; …

c# linq-to-entities asp.net-4.0
'Contains()' workaround using Linq to Entities?

I'm trying to create a query which uses a list of ids in the where clause, using the Silverlight ADO.…

c# linq entity-framework .net-3.5 linq-to-entities
Entity Framework 4 Single() vs First() vs FirstOrDefault()

I'm having a devil of a time finding a comparison of the different ways to query for a single item, …

.net linq entity-framework entity-framework-4 linq-to-entities
What's the difference(s) between .ToList(), .AsEnumerable(), AsQueryable()?

I know some differences of LINQ to Entities and LINQ to Objects which the first implements IQueryable and the second …

entity-framework entity-framework-4 linq-to-entities entity-framework-5
How to initialize IEnumerable<Object> that be empty and allow to Concat to it?

I tried this code for adding b to books: IEnumerable<Book> books =null; foreach (Book b in context.…

c# linq linq-to-entities concatenation argumentnullexception