public static void Main() { Database.SetInitializer(new MigrateDatabaseToLatestVersion <ConfluxDbContext, Configuration>()); var db = new ConfluxDbContext(); JSON.SaveFile(db); var carPrices = db.Cars .Select(c => new { c.Model, c.Make, c.Price }) .ToList(); PDFReporter.CreateReport(carPrices, "../../PDF-Reports/car-price.pdf", "Car prices report"); Console.WriteLine("Car prices report created."); var carPricesInRange = db.Cars .Where(c => c.Price > 15000 && c.Price < 25000) .ToList(); PDFReporter.CreateReport(carPricesInRange, "../../PDF-Reports/car-price-between-15000-and-25000.pdf", "Car prices between 15000 and 25000"); Console.WriteLine("Car prices between 15000 and 25000 report created."); XmlReport xlmReport = new XmlReport(); bool success = xlmReport.GenerateXmlReport("../../xmlReport.xml"); Console.WriteLine("XML Report created at: '../ConfluxApplication/xmlReport.xml'"); db.Dispose(); }