private void UpdateScriptsRan(List <SchemaVersion> results) { results.ForEach(result => { var schemaEntity = new SchemaEntity { ScriptName = Path.GetFileName(result.ScriptPath), MajorVersion = result.MajorVersion, MinorVersion = result.MinorVersion, ScriptVersion = result.ScriptVersion, ScriptRunDateTime = DateTime.Now }; _schemaRepository.AddSchemaEntity(schemaEntity); }); }