We are in the progress of migrating Data Access Layers to a newer, more supported, and more generated DAL than the currently used one.
As such, we have many different object that while are technically different, represent collections of data that can be easily transferred/converted to each other without data loss.
What's the most flexible, or most widely used, or most preferred, etc methodology to perform this type of type conversion?
i'm considering writing a set of partial classes that implement IConvertible. i've also considered creating a System.ComponentModel.TypeConverter to perform the conversions. Are there any other options that may be better at this that I may have not considered?
What options are available?
ideally, i'd like to keep these conversions in an extension class or different library as to not clutter up our project references. The clutter can live in this one special conversion library.
For instance,
in DAL1.DataTypes i have a class Table1Data
in DAL2.DataTypes i have a class Table1
Thanks.