EF doesn't allow two classes with the same name, but different namespaces, to be mapped.
This is complex to change so we also have an item to provide a better exception message until this is supported - http://entityframework.codeplex.com/workitem/589
namespace Test.Security
{
public class Question
{
public Guid Id { get; set; }
}
}
namespace Test.Forms
{
public class Question
{
public Guid Id { get; set; }
}
}
Comments: I can't believe this bug has been unfixed for so long. I'm working on a conversion project where 6-10 databases being converted are going to have the same table names. I have been using database first without issues until I just now ran into the first database that has duplicate table names. This should really have a higher priority and get fixed, it's pretty sad that a bug of this magnitude can go unfixed for 4-5 years...
This is complex to change so we also have an item to provide a better exception message until this is supported - http://entityframework.codeplex.com/workitem/589
namespace Test.Security
{
public class Question
{
public Guid Id { get; set; }
}
}
namespace Test.Forms
{
public class Question
{
public Guid Id { get; set; }
}
}
Comments: I can't believe this bug has been unfixed for so long. I'm working on a conversion project where 6-10 databases being converted are going to have the same table names. I have been using database first without issues until I just now ran into the first database that has duplicate table names. This should really have a higher priority and get fixed, it's pretty sad that a bug of this magnitude can go unfixed for 4-5 years...