Hello I've got to map an object with a lot of properties that really are better located into a Map. This can be implemented using the dynamic-component.
Now my second requirement is that not only I don't know what are the elements that need going into the map at buildtime I don't know either at runtime because the table is a slow changing table and I don't have a way to know if say a new column has been added to the table (columns are only added, never removed). My initial plan was to maybe either put a trigger on the table so that I know it's changed or find a way so that I can reliably know the table version without such trigger (I'm using Oracle 11g). And whenever the SessionFactory is called to create a ISession I would check if the tables of interest have changed and then change the mapping file at runtime. I slightly oversimplified this problem because the map is actually a map of a map such as : IDictionary<object, IDictionary<string, object>>. My questions are : - Has anybody done something like that and could comment ? - Are there any side issues when dynamically modifying the mapping to add new Property mappings ? - Is it just better to use ADO.Net instead of twisting NHibernate to support this model ? - Am I right there is no lazy loading option with dynamic-component and therefore fetching is not fully configurable ? Many thanks for any help Daniel --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
