/// <summary> /// Set blob pointer before mapping /// </summary> /// <param name="manager"></param> /// <param name="sourceDatabase"></param> /// <param name="destinationDatabase"></param> /// <param name="obj"></param> public override void BeforeMappingRecord(MappingManager manager, SourceDatabase sourceDatabase, DestinationDatabase destinationDatabase, object obj) { DatabaseConversion.CleanerTool.BOALedgerDataAccess.confirmation_of_cover record = obj as DatabaseConversion.CleanerTool.BOALedgerDataAccess.confirmation_of_cover; if (this._temporyFilePath.ContainsKey(record.coc_id)) { record.coc_blob_pointer = this._temporyFilePath[record.coc_id]; } }
/// <summary> /// Custom mapper function for confirmation_of_cover table /// </summary> /// <param name="source"></param> /// <returns></returns> protected DatabaseConversion.CleanerTool.BOALedgerDataAccess.confirmation_of_cover CustomMapper_confirmation_of_cover(DatabaseConversion.CleanerTool.EclipseDataAccess.confirmation_of_cover source) { // // Initialize result DatabaseConversion.CleanerTool.BOALedgerDataAccess.confirmation_of_cover destination = new DatabaseConversion.CleanerTool.BOALedgerDataAccess.confirmation_of_cover(); // // Set basic properties destination.coc_id = source.coc_id; destination.coc_name = source.coc_name; destination.coc_created_who = source.coc_created_who; destination.coc_created_when = source.coc_created_when; destination.coc_updated_who = source.coc_updated_who; destination.coc_updated_when = source.coc_updated_when; destination.coc_inactive = source.coc_inactive; // // Return result return destination; }