I have the following class (simplefied)
This is giving the following error on domain build, searched the forum, but I do not know what the problem is: TestFixture failed: System.TypeLoadException : Access is denied: 'Xtensive.Storage.Internals.EntitySetItem This thread was imported from our support forum. The original discussion may contain more detailed answer. |
stefmen wrote:This should work!... Make sure you have a [HierarchyRoot] identifier set on top of your class and a key field available.. This works for me! My class looks like this (also simplified):
otto wrote:The problem is that the container class is not public. It also hapened to me, here is the issue: http://code.google.com/p/dataobjectsdot ... ail?id=698 Alex (Xtensive) wrote:Btw, I suspect the issue can't be fixed: the problem here is that we generate a descendant of EntitySetItem<tmaster, tslave=""> to describe the relationship, where either TMaster or TSlave is substituted to non-public type. Obviously, this can't work, and I don't know if there are any possible workarounds. Otto, thanks for analysis - it seems you're absolutely right. I found one possible way of resolving this: http://code.google.com/p/dataobjectsdot ... ?id=698#c3 |