// update 3.2.2 notes: Added table LK_District and updated initialization for LK_Forests public static void UpdateTo_3_2_2(CruiseDatastore ds) { // create an in-memory database // to migrate into using (var newDatastore = new CruiseDatastore_V3()) { var excludeTables = new[] { "LK_CruiseMethod", "LK_District", "LK_FIA", "LK_Forest", "LK_LoggingMethod", "LK_Product", "LK_Purpose", "LK_Region", "LK_UOM", "LogField", "TreeField", }; // migrate contents of old db into new in-memory database Migrate(ds, newDatastore, excludeTables); // use back up rutine to replace old database with // migrated contents newDatastore.BackupDatabase(ds); } }
public static void UpdateTo_3_1_0(CruiseDatastore ds) { // create an in-memory database // to migrate into using (var newDatastore = new CruiseDatastore_V3()) { var excludeTables = new[] { "SamplerState" }; // migrate contents of old db into new in-memory database Migrate(ds, newDatastore, excludeTables); // use back up rutine to replace old database with // migrated contents newDatastore.BackupDatabase(ds); } }