I have been looking at the Burrow source code and I'm not sure if I can use its GenericDAO to handle multiple databases the way I want.
I have see that the Session property of the GenericDAO class calls BurrowFramework().GetSession(_NHEntityType) and that works good if the multiples databases you're working with have different entities. However, it can't handle multiple databases with the same mapped entities as the GetSession method always returns the first PersistenceUnit. So I think GenericDAO needs an overload to specify a session factory name to retrieve the proper PersistenceUnit by name instead of by type. As I have started today to look at Burrow I may be wrong, so if anyone is familiar with it I'd appreciate if he can show some light about that problem. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
