Quantcast
Channel: Entity Framework
Viewing all articles
Browse latest Browse all 10318

Commented Issue: Can't map two classes with same name from different namespace [483]

$
0
0
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.

Viewing all articles
Browse latest Browse all 10318

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>