public void SaveSchema(string path) { var fileName = Path.Combine(path, $"Schema.json"); var parameters = new StorageParameters { FileName = fileName }; _storage.SaveSchema(Schema, parameters); }
public void SaveSchema(string path) { // Schema.VersionKey set during migration generation //if (Schema.Changed) //{ // Schema.VersionKey = Guid.NewGuid(); //} var fileName = Path.Combine(path, GenerateFileName(path)); var parameters = new StorageParameters { FileName = fileName }; var schema = DesignSchemaConvert.ToStoreSchema(Schema); _schemaStorage.SaveSchema(schema, parameters); // set all changed properties ClearChanged(); // clear logs ? }