1) Use Adapter
2) Use Adapter
3) Use Adapter
This is important
All you need to do is create two instances of DataAccessAdapter, one pointing to each database. You can then load enties using one adapter and save them using the other one.
The trick to make sure that the entities save properly in the new database is to set
.IsNew = true
and
.IsDirty = true
on the entity and
.IsChanged on each field in the entity
This will ensure that the second adapter thinks that each field needs to be saved and the entity needs to be inserted rather than updated.
Matt