How can I add a reference to an object, if I know its oid, and I don't want to open it?
If I just do :
var referenceToObj = new EntityObject{ID = knownOID}
var newObj = new AnotherObject(referenceToObj);
session.Persist(newObj);
than both newObj is created and new object referenceToObj is created (and it is not desired). I think, that API ignores its ID property and looks at IsPersistent which returns false;