"can the data model be easily updated at runtime to match the new fields added by customers? "
Yes, you can recreate/modify the configuration at runtime and you will also have to create a new sessionfactory. This is quite an expensive operation, but I guess it may be OK since adding new columns is hardly something that is done continously. But that would only make sense in a dynamic-component scenario (as outlined by Ayende) where property values are stored in a Dictionary (hash). Otherwise you would have to dynamically emit new class properties and classes to have something to map to the new tables and columns. /G On Oct 12, 11:50 am, foxprorawks <[email protected]> wrote: > Hi, > > We are currently evaluating various technologies and designing our new > product. > > Our new product will include multi-tenancy. Each customer will be > supplied with a standard database, but the system will allow users to > modify the database (by adding or removing fields from existing > tablesor adding totally new tables). Each customer will have their > own separate database. > > The database modification will be done via a web interface. > > We are looking at MVC2 and NHibernate 2. > > This is the first time we've used either technology, so it's a steep > learning curve for us. > > We've read some interesting ideas, particularly on the Ayende site: > > http://ayende.com/Blog/archive/2009/04/11/nhibernate-mapping-ltdynami... > > One question we have is, can the data model be easily updated at > runtime to match the new fields added by customers? > > Also, how do we get the application to use separate data models for > each customer (although each customer will have a separate database, > they will all be served by the same application which will determine > which database to connect to)? > > Regards. > > Matt. -- 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.
