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: Adding exception message to make it easier to find: The mapping of CLR type to EDM type is ambiguous because multiple CLR types match the EDM type 'ABC'. Previously found CLR type 'Ns1.ABC', newly found CLR type 'Ns2.ABC."}
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: Adding exception message to make it easier to find: The mapping of CLR type to EDM type is ambiguous because multiple CLR types match the EDM type 'ABC'. Previously found CLR type 'Ns1.ABC', newly found CLR type 'Ns2.ABC."}