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" }) }, }); }
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" }) } }); }
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" }) }, }); }
public Repository(BiobDataContext context) { _context = context; }
public HallRepository(BiobDataContext context) : base(context) { }
public GenreRepository(BiobDataContext context) : base(context) { }
public SeatRepository(BiobDataContext context, ITicketRepository ticketRepository, IShowtimeRepository showtimeRepository) : base(context) { _ticketRepository = ticketRepository; _showtimeRepository = showtimeRepository; }