Is it possible that you defined a bad column relation between your tables?
In my case, I had different columns and one was set as autonumeric.
More Related Contents:
- Entity Framework/Linq to SQL: Skip & Take
- Entity Framework/SQL2008 – How to Automatically Update LastModified fields for Entities?
- Return anonymous type results?
- Read data from SqlDataReader
- Entity Framework 4 – AddObject vs Attach
- Entity Framework Join 3 Tables
- How to do a subquery in LINQ?
- LINQ: combining join and group by
- Entity Framework Thread Safety
- The result of a query cannot be enumerated more than once
- Operation could destabilize the runtime?
- Entity Framework – Add Navigation Property Manually
- How to select only the records with the highest date in LINQ
- Entity Framework – Invalid Column Name ‘*_ID”
- Get all associate/composite objects inside an object (in Abstract way)
- How to create “embedded” SQL 2008 database file if it doesn’t exist?
- How to load image from SQL Server into picture box?
- LINQ Expression to return Property value?
- EF4 Code First: how to add a relationship without adding a navigation property
- Entity Framework 4: How to find the primary key?
- Get sum of two columns in one LINQ query
- Add the where clause dynamically in Entity Framework
- How can I add my attributes to Code-Generated Linq2Sql classes properties?
- Is it possible to prevent EntityFramework 4 from overwriting customized properties?
- how to recognize similar words with difference in spelling
- Attribute.IsDefined doesn’t see attributes applied with MetadataType class
- LINQ to Entities group-by failure using .date
- Repository Pattern, POCO, and Business Entities
- LINQ to SQL Where Clause Optional Criteria
- Using Include in Entity Framework 4 with lambda expressions