Exemple #1
0
 public TicketRepository(IPropertyMappingService propertyMappingService, BiobDataContext context) : base(context)
 {
     _propertyMappingService = propertyMappingService;
     _propertyMappingService.AddPropertyMapping <TicketDto, Ticket>(new Dictionary <string, PropertyMappingValue>(StringComparer.OrdinalIgnoreCase)
     {
         { "Id", new PropertyMappingValue(new List <string>()
             {
                 "Id"
             }) },
         { "CustomerId", new PropertyMappingValue(new List <string>()
             {
                 "CustomerId"
             }) },
         { "ShowtimeId", new PropertyMappingValue(new List <string>()
             {
                 "ShowtimeId"
             }) },
         { "HallseatId", new PropertyMappingValue(new List <string>()
             {
                 "HallseatId"
             }) },
         { "Reserved", new PropertyMappingValue(new List <string>()
             {
                 "Reserved"
             }) },
         { "Paid", new PropertyMappingValue(new List <string>()
             {
                 "Paid"
             }) },
         { "Price", new PropertyMappingValue(new List <string>()
             {
                 "Price"
             }) },
     });
 }
Exemple #2
0
 public ShowtimeRepository(IPropertyMappingService propertyMappingService, BiobDataContext context) : base(context)
 {
     _propertyMappingService = propertyMappingService;
     _propertyMappingService.AddPropertyMapping <ShowtimeDto, Showtime>(new Dictionary <string, PropertyMappingValue>(StringComparer.OrdinalIgnoreCase)
     {
         { "Id", new PropertyMappingValue(new List <string>()
             {
                 "Id"
             }) },
         { "MovieId", new PropertyMappingValue(new List <string>()
             {
                 "MovieId"
             }) },
         { "HallId", new PropertyMappingValue(new List <string>()
             {
                 "HallId"
             }) },
         { "TimeOfPlaying", new PropertyMappingValue(new List <string>()
             {
                 "TimeOfPlaying"
             }) },
         { "ThreeDee", new PropertyMappingValue(new List <string>()
             {
                 "ThreeDee"
             }) }
     });
 }
Exemple #3
0
 public MovieRepository(IPropertyMappingService propertyMappingService, BiobDataContext context) : base(context)
 {
     _propertyMappingService = propertyMappingService;
     _propertyMappingService.AddPropertyMapping <MovieDto, Movie>(new Dictionary <string, PropertyMappingValue>(StringComparer.OrdinalIgnoreCase)
     {
         { "Id", new PropertyMappingValue(new List <string>()
             {
                 "Id"
             }) },
         { "Title", new PropertyMappingValue(new List <string>()
             {
                 "Title"
             }) },
         { "Description", new PropertyMappingValue(new List <string>()
             {
                 "Description"
             }) },
         { "Length", new PropertyMappingValue(new List <string>()
             {
                 "LengthInSeconds"
             }) },
         { "Poster", new PropertyMappingValue(new List <string>()
             {
                 "Poster"
             }) },
         { "Producer", new PropertyMappingValue(new List <string>()
             {
                 "Producer"
             }) },
         { "Actors", new PropertyMappingValue(new List <string>()
             {
                 "Actors"
             }) },
         { "Genre", new PropertyMappingValue(new List <string>()
             {
                 "Genre"
             }) },
         { "Released", new PropertyMappingValue(new List <string>()
             {
                 "Released"
             }) },
         { "ThreeDee", new PropertyMappingValue(new List <string>()
             {
                 "ThreeDee"
             }) },
         { "AgeRestriction", new PropertyMappingValue(new List <string>()
             {
                 "AgeRestriction"
             }) },
     });
 }
Exemple #4
0
 public Repository(BiobDataContext context)
 {
     _context = context;
 }
Exemple #5
0
 public HallRepository(BiobDataContext context) : base(context)
 {
 }
Exemple #6
0
 public GenreRepository(BiobDataContext context) : base(context)
 {
 }
Exemple #7
0
 public SeatRepository(BiobDataContext context, ITicketRepository ticketRepository, IShowtimeRepository showtimeRepository) : base(context)
 {
     _ticketRepository   = ticketRepository;
     _showtimeRepository = showtimeRepository;
 }