コード例 #1
0
        public static void Main(string[] args)
        {
            var db = new AirflightDbContext();

            db.Database.Migrate();

            IAirFlightsController controller = new AirflightsController();
            IReader reader = new ConsoleReader();
            IWriter writer = new ConsoleWriter();

            Engine engine = new Engine(controller, reader, writer);

            engine.Run();
        }
コード例 #2
0
 public FlightController()
 {
     this.context = new AirflightDbContext();
 }
コード例 #3
0
 public LoginController()
 {
     this.context = new AirflightDbContext();
 }