Possibility of exposing DatabaseFactory class as a partial class

Topics: Data Access Application Block
Apr 29, 2010 at 7:49 PM

We would like to add additional static methods to the DatabaseFactory class to extend the existing functionality of this to support additional configurations in our own implementation without having to specially re-compile the original Enterprise Library assemblies which are already strong named and compiled with the default installation.

Therefore, is there a possibility in the future of exposing the DatabaseFactory class as a partial class so that it can be easily extended by other implementations without requiring the original assembly and source code to be modified?

Thanks.

Apr 29, 2010 at 10:33 PM

My understanding is that partial classes don't work that way. "Partial" isn't reflected in the IL in any way - you have to have the original source. So it wouldn't do what you want it to regardless.