I'm looking for feedback on the best way to do the following: Map a class to a view in sql server (its in the 'dbo' schema) and map the same class to the table which backs up that view (its in a separate database schema, 'tableschema').
The table has an additional column that the view doesn't have, apart from that they are identical. I'm currently thinking that the way to do this is to use the entity- name feature to create a duplicate mapping for the 'tableschema' entities. I can loop over the metadata before the session factory is built, clone the metadata and make the changes - set the database schema and add the additional property mapping. Does this make sense? Is there a better way? Most importantly, is it possible. Also, any advice on the best way to clone the metadata for a class? Thanks, Rob. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
