Hi there. We currently have all our entities in one database/server but one of the features of our product would be to allow any entity to be persisted in any database/server.
1 - On startup only the basic entities would be loaded (Core entities) 2 - The DatabaseConnection entity class (from the startup entities) would contain the entity names and connection strings. 3 - Register each additional types with their own session factory with their own connection string from the DatabaseConnection entity. This works ok only if no entity of the same session factory (3) has a reference to another entity of another session factory. I only need connection between the (3) entities and the (1) Core entities. No (1) to (3) or (3) to (3) is needed. So my question is, how can this be achieved? I don't particularly like the Schema option since this restricts to SQL server, (can anyone confirm this?) Should I implement my own IConnectionProvider (what are the implications of this?). I read some post of Ayende that this restrict the second cache level and updates. Should I implement my own IUserType for the relations and try to fetch the core objects (what are the implications of this specially about the select n+1 ?) Any other hint to were to search/read about this? With best regards. -- 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.
