Just in case, someone came across this error "Type is not allowed for a member":
This post is very misleading because it is shown on many issues that have nothing to do with what you can assume from this post.
In most cases, when I came across this message, it was some code inside the mapped class throwing an exception when the Seed method was executed. Watch out for custom implementations of ToString () and GetHashCode ().
The VS debugger is your best friend in this case. Just add the following code to the Seed () method:
if (System.Diagnostics.Debugger.IsAttached == false) System.Diagnostics.Debugger.Launch();
Run the second instance of VS with your project before running the Update-Database command, and you will see what is wrong.
source share