Top "Linq-to-entities" questions

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

How do you return a default value if a LINQ to entities query returns no values

In a LINQ to entities expression like this: var vote = (from vote in db.Vote where vote.Voter.Id == user.…

linq entity-framework linq-to-entities defaultifempty
The method 'OrderBy' must be called before the method 'Skip' Exception

I was trying to implement the jQgrid using MvcjQgrid and i got this exception. System.NotSupportedException was unhandled by user …

asp.net-mvc-3 entity-framework linq-to-entities mvcjqgrid
Entity Framework 4 / Linq: How to convert from DateTime to string in a query?

I have the following query: from a in Products select new ProductVM { id = a.id, modified = a.modified.ToString() } Which …

entity-framework-4 linq-to-entities tostring
ASP.NET MVC 2.0 Implementation of searching in jqgrid

Hi I am trying to use the single column search in jqgrid using MVC 2 IN .NET (VS 2008) this is the …

entity-framework asp.net-mvc-2 search jqgrid linq-to-entities
Problem with LINQ to Entities and String.StartsWith

I'm trying to build a search page using LINQ to Entities, but the following code is giving me a runtime …

.net linq entity-framework linq-to-entities
Dynamically add new lambda expressions to create a filter

I need to do some filtering on an ObjectSet to obtain the entities I need by doing this : query = this.…

c# linq linq-to-entities linq-expressions
Semaphore exception - Adding the specified count to the semaphore would cause it to exceed its maximum count

I've been having this SemaphoreFullException for quiet some time. To summarize.. I have hosted an application on IIS 7.5 with ASP.…

c# asp.net-mvc entity-framework linq-to-entities iis-7.5
Linq To Entities - how to filter on child entities

I have entities Group and User. the Group entity has Users property which is a list of Users. User has …

linq entity-framework linq-to-entities wcf-ria-services
Convert anonymous type to new C# 7 tuple type

The new version of C# is there, with the useful new feature Tuple Types: public IQueryable<T> Query&…

linq-to-entities tuples anonymous-types linq-to-nhibernate c#-7.0
The version of SQL Server in use does not support datatype datetime2?

An error occurred while executing the command definition. See the inner exception for details. bbbbInnerException:aaaa System.ArgumentException: The version …

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