I am trying to copy some data from one database to another. I fetch an EntityCollection from the first database. This is successful.
Next I open a connection to the second database and attempt to save (insert) each of the entities in that database. SaveEntity returns true but the data is not inserted.
Is this a code problem or something else?
Using dataAdapter As New DataAccessAdapter("SecondDatabaseConnectionStringHere")
For Each item As IEntity2 In dataCollection
item.IsNew = True
logger.Debug("Saved: {0}", dataAdapter.SaveEntity(item))
Next
End Using