I'm having the exact same problem - I've seen this error before but there's no way to dig into it\nothing really useful or obvious in the logs, either.
This fixed it. And (in case this helps anyone else) I was also missing:
public virtual DbSet<UserDelegation> UserDelegations { get; set; }
In my DbContext.cs