c# - How to get Nhibernate to handle non existing database columns gracefully -


I am working on a project for which most databases are completely identical but some columns may be missing. For example, how do I handle NHibernate, for example, I have 4 columns, an index and 2 data columns which will always be available, but a song customer does not want a column in their database.

As a legacy app is part of migration I do not have the luxury of directing the database format or even changing the database. Anyone have any idea about how to do this. I can not get NHibernate shards to work with it.

KR Nikki

I ignore columns I do not know how to mapped otherwise

I will try to create several mapping files for different databases and then configure your SessionFactor by using the correct mapping files based on my environment. Will do

This little work is setup in the beginning but it makes very clear that in the database X you have Columns ABC and in the Database Y, you have the column AB.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -