P
Patrick Fogarty
While I wait for ObjectSpaces I have created a library of routines that
allow the persistence of my objects to SQL. Saving and retrieving the
objects work just fine. In fact it's all working well. My problem comes as
I look forward.
Inevitably, my class libraries (those that will be persisted as opposed to
those doing the persistence work) will evolve. So over time I will have
diferent versions of the same class/object persisted to the same database.
Assume for a moment that I have persisted, with the object, the name of the
assembly its class definition is in and the assembly's version. Assume also
that I have all versions of the desired assembly in the global cache. How
do I use System.Activator to instantiate a class from an assembly for which
there may be many version available, but only one will do?
- Patrick
allow the persistence of my objects to SQL. Saving and retrieving the
objects work just fine. In fact it's all working well. My problem comes as
I look forward.
Inevitably, my class libraries (those that will be persisted as opposed to
those doing the persistence work) will evolve. So over time I will have
diferent versions of the same class/object persisted to the same database.
Assume for a moment that I have persisted, with the object, the name of the
assembly its class definition is in and the assembly's version. Assume also
that I have all versions of the desired assembly in the global cache. How
do I use System.Activator to instantiate a class from an assembly for which
there may be many version available, but only one will do?
- Patrick