static void Main() { var jsonFilesDirPath = @"..\..\..\jsonFiles\"; var db = new CarsContext(); var jsonParser = new JsonParser(db, jsonFilesDirPath); jsonParser.ParseAllFiles(); string xmlQueriesPath = @"..\..\..\xmlQueries\Queries.xml"; var queriesManager = new QueriesManager(db, xmlQueriesPath); queriesManager.GenerateQueryResults(); }
public DeleteModel(Cars.Data.CarsContext context) { _context = context; }
public CreateModel(Cars.Data.CarsContext context) { _context = context; }
public DetailsModel(Cars.Data.CarsContext context) { _context = context; }
public EditModel(Cars.Data.CarsContext context) { _context = context; }
public IndexModel(Cars.Data.CarsContext context) { _context = context; }
public JsonParser(CarsContext db, string rootPath) { this.rootPath = rootPath; this.db = db; }
public QueriesManager(CarsContext db, string xmlFilePath) { this.XmlFilePath = xmlFilePath; this.db = db; }
public SqlCarsRepo(CarsContext context) { _context = context; }