This project has moved and is read-only. For the latest updates, please go here.

"The given key was not present in the dictionary" Exception because of renamed table

May 6, 2016 at 1:37 PM
Related to this topic:

http://stackoverflow.com/questions/26425789/entity-framework-6-1-the-given-key-was-not-present-in-the-dictionary

I have renamed by table names and getting the exception message: "The given key was not present in the dictionary"

Is there a fix for this?
May 11, 2016 at 7:17 PM
Same problem, is there a way to overrule the Table name?
May 17, 2016 at 12:58 AM
Did you try using the Table attribute on the entity?
May 17, 2016 at 4:34 PM
Yes. I'm using the following code:
using System.ComponentModel.DataAnnotations.Schema;

[Table("Properties")]
public class Property{

}