protected void UpdateSchema(IDbConnection con, int version) { var migrations = MigrationRunner.GetMigrations(); var model = migrations.Select(x => x.Value).FirstOrDefault(x => x.Version == version); if (model != null) { con.AddVersionInfo(new TableCreation.VersionInfo { Version = model.Version, Description = model.Description }); } }