"I realized that when lazy loading NH does not touch the database before creating the proxy object. Now how should NH know if it should create a ProfileA-proxy or a ProfileB- proxy without checking the database for the discrimiator value? "
This is a big problem in my opinion. Surely NH could create the proxy as it read through the dataset fetched from the DB and then decide which Type to base the proxy on? It kind of screws up one of the best parts of OOP, Polymorphism. None of the links you provide look like they are something I would like to do, I'd just want NH to create the correct type of object. Pete ==== http://mrpmorris.blogspot.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
