Posted on 2011-10-30
Medium Priority
Last Modified: 2013-11-11
when trying to query my database with entityframework i get the following error:
The navigation property of type 'System.Collections.Generic.IEnumerable`1[[TASK.Warehouses.Domain.NoteProducts.NoteProduct, TASK.Warehouses.Domain, Version=, Culture=neutral, PublicKeyToken=null]]' is not a single implementation of 'System.Collections.Generic.ICollection`1[T]'.
what could be the problem and how could i fix it
Question by:SA85
  • 2

Expert Comment

ID: 37055294

Have you tried deleting the involved tables from the edmx graphical editor, and updating from db to get them again ??


Author Comment

ID: 37056038
¿ will try it today, do you have any other ideas or ways to fix it?

Accepted Solution

Srm74 earned 2000 total points
ID: 37056232
Whenever you change anything i edmx file, regardless of it having an impact on the db, create the updatescript for the database.
This procedure updates the 3 layers in the edmx file.

Featured Post

Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month17 days, 6 hours left to enroll

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question