This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, my idea is to create a unit of work,populate all the required entities, detach from the database, massage the data if necessary then attach to a new(different) database and write that data to the new database. Does lightspeed cater for this ? |
|
|
Yes, it does - you can detach an entity from one unit of work and then attach to another which could be based on a totally independent database connection or provider (e.g. it was constructed from a separate LightSpeedContext). Keep in mind if you have any associated data you will need to maintain FK integrity by either fully loading out the entity and its relationships using eager loading prior to an import or by structuring your import process so that it deals with sets of entities by type and then inserts then in the appropriate order to satisfy your FK relationships.
|
|