i don't know what version of entityframework you are usinge, but it looks like this issue was fixed in entityframework 6.1.0
here is the issue on codeplex: https://entityframework.codeplex.com/workitem/826
here is the so question and answer that helped me: https://stackoverflow.com/a/25320462/466100
- WCF Data Services, DTO, and Entity Framework: The argument to DbIsNullExpression must refer to a primitive, enumeration or reference type
- What are the major differences between Data Access Application Block, NHibernate, ADO.NET Entity Framework and LINQ to SQL?
- How can I get data from the Entity Framework if I only know the table name and the column name from which to get the data?
- What are the Java equivalents to Linq and Entity Framework
- I am wondering about the state of connection and impact on code performance by 'yield' while iterating over data reader object
- Convert string to int in an Entity Framework linq query and handling the parsing exception
- Lambda Expressions and the || operator in Entity Framework
- LINQ 'AsEnumerable' and the Entity Framework
- LINQ to Entities does not recognize the method - Entity Framework and DDD
- Where does Entity Framework store the mapping between property names and the columns it selects in SQL?
- WCF Data Services : add two new objects to the database with links between them
- How to bind data from mutiple tables to datagridview using Entity Framework and use CRUD operations?
- OData WCF Data Services - Related data (by foreign key) doesn't show up when calling the service
- Pull data from multiple tables in one SQL query using LINQ and Entity Framework (Core)
- updating data in many-to-many relationship in entity framework in code first existing database
- Can I load hierarchical data with Entity Framework 4 using ".Include" and filter a Navigation Property based on some criteria
- SQL subquery result in LINQ and Entity Framework Code First
- How to Query Icollections of Entity Framework Code First Data
- Linq, Entity Framework and WCF
- Create a entity framework LINQ group join query to return a subset of properties from DTO and a list of another DTO, ASP.net core
- grouping and flatening 1:M:M:1 related data in Entity Framework Core/LINQ
- How to filter related data using Entity Framework and LINQ to SQL and LinqKit PredicateBuilder Or IdeaBlade DevForce
- Can I limit how many levels the .include adds with LINQ and Entity Framework 5?
- LINQ entity data model generated code error - The type 'DBContexts.Category' already contains a definition for 'ID'
- Entity Framework Code First override onModelCreating() for TPT Inheritance Screwing Up Identity User and Role Models
- Multiple join in Entity Framework and include all data
- How to calculate STD dev and Average with linq and entity framework at the same time
- Grouping data based on date entity framework and LINQ
- how to select data by linq in many-to-many relationship in First code Entity framework 5
- C# and ADO .NET entity data models with LINQ associations and entities for the same table
More Query from same tag
- How to join two IQueryable queries together?
- Parsing an Excel file in C#, the cells seem to get cut off at 255 characters... how do I stop that?
- Linq query for selecting an item from tree structure, but to look in the whole depth
- Linq MVC5 MSQL select some columns from a table containing larg amount of columns in order to make better and fast query
- LINQ Select within a Select
- Unable to XML serialization when using .NET to consume REST Axis2 WS
- Linq to Entities Where Or clause
- Linq to XML Error
- Parsing xml with xmlns in visual basic
- Distinct list<string> of chars
- Create sequence consisting of multiple property values
- Using LINQ GroupBy to group by reference objects instead of value objects
- Linq to Sql Datacontext primary key not set
- Using IQueryable<T> with LINQ join tables
- LINQ groupby question
- create query that uses IN returning wrong values
- How to group a time series by interval (OHLC bars) with LINQ
- C# XAttribute with whitespaces
- Linq help with SQL in() statement
- How can I resolve this error? (LINQ to XML)
- How to filter a flattened LINQ result in C#
- English Dictionary word matching from a string
- Change the default behaviour of NullValue in a DataSet
- linq query with dynamic where clause
- Does LINQ natively support splitting a collection in two?
- Why can't I use var in this instance?
- C# Polymorphism with generic type constraints
- Linq: find similar objects from two different lists
- Match groups of elements in a list to all elements of a dictionary
- EFcore Joining InMemory Table for duplication of entry