コード例 #1
0
 private static void CreateNewAirports(SqlCrud sql, List <AirportModel> airports)
 {
     foreach (var airport in airports)
     {
         sql.CreateAirport(airport);
     }
 }
コード例 #2
0
        private static void CreateNewAirport(SqlCrud sql)
        {
            // Test Data
            var airport = new AirportModel
            {
                IATACode = "ORD",
                Name     = "O'Hare International Airport",
                City     = "Chicago",
                State    = "IL"
            };

            sql.CreateAirport(airport);
        }