This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, I have an on-to-one association and whenever I set an eager load for source, target or both, I get this error (inner error is null): Cannot access a disposed object. Object name: 'BusinessLayerUnitOfWork'.
I use PerRequestUnitOfWorkScope, BusinessLayerUnitOfWork is my UoW. Why? Can I post some additional info? Pooik |
|
|
New findings: I have source nullable. Source is null, eager load target is true => error. Source is null, eager load source is true => error. Source is null, eager load for both is true => error. Source is null, eager load for both is false => error. Let me catch how does eager load and source nullable work please... |
|
|
May be one more important information: I load target first. Is important? Depends on it? |
|
|
It sounds like something is disposing the unit of work before the association is traversed, but I am puzzled as to why this would be an issue in an *eager* load scenario. Could you provide us with a small complete buildable project that reproduces the problem? Thanks! |
|
|
Hi,
Was there ever any follow up on this problem?
-Steven |
|
|
Hi Steven, We don't yet have a repro for it. If you're seeing the same issue, and can provide repro code, we'd be happy to take a look. |
|