예제 #1
0
        private static int SingleInsertTicket(int movieId)
        {
            Console.WriteLine("Inserting a ticket purchase.");

            Ticket ticket = new Ticket
            {
                MovieId = movieId,
                Price = 1.00M,
                SoldTo = "Andy Meadows",
                Age = 95
            };

            return ExecuteQuery(ticket.ToInsertQuery<Ticket>(db.Provider));
        }