I am attempt to use a custom collection type and I am running into a problem with calling methods on the actual implementation of the Collection that lives in my domain model.
Here are the classes:
Code:
public class PhotoCollection : IPhotoCollection {
public void Finalize() {
// some code here
}
}
public class PersistentPhotoCollection : PersistentBag, IPersistentCollection {
public void Finalize() {
// how do i call PhotoCollection.Finalize from here?
}
}
public class PhotoCollectionType : IUserCollectionType {}
It works fine for persistence to the database, but IPhotoCollection has the Finalize() method on it that are implemented in PhotoCollection.
I can't figure out how to call these implementations from PersistentPhotoCollection. How do I obtain a reference to PhotoCollection? Is it the Owner property on PersistentBag? I don't seem to "get it"
any help would be appreciated. Thank you!