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: __This now works for EF6 but only when using Code First__ See: http://entityframework.codeplex.com/workitem/911 This item remains open and in futures for Database First and Model First.
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: __This now works for EF6 but only when using Code First__ See: http://entityframework.codeplex.com/workitem/911 This item remains open and in futures for Database First and Model First.