private static void AnalyseAssembly(string name) { using (var context = new AnnotationContext()) { var file = new FileInfo(name); var analyser = new Analyser(); var extractedData = analyser.AnalyseAssembly(file); if (extractedData == null || !extractedData.Any()) { throw new CodeTrackingException("No code tracking attributes assigned to selected "); } foreach (var codeInfo in analyser.AnalyseAssembly(file)) { context.CodeChanges.Add(codeInfo); Console.WriteLine(codeInfo.ToString()); } context.SaveChanges(); } }