C# Class Tenant.Mvc.Core.Contexts.DatabaseContext.ConcertContext

Mostrar archivo Open project: Microsoft/WingTipTickets

Public Methods

Method Description
AddNewArtist ( String artistName ) : PerformerModel
DeleteConcert ( int concertId ) : System.Boolean
GetArtistById ( int artistId ) : PerformerModel
GetArtistByName ( String artistName ) : PerformerModel
GetArtists ( ) : List
GetConcertById ( int concertId ) : ConcertModel
GetConcertByName ( String concertName ) : ConcertModel
GetConcertIdToDbSaveMap ( ) : int>>.List
GetConcerts ( int venueId, bool orderByName = false ) : List
SaveNewConcert ( String concertName, String concertDescription, System.DateTime concertDateTime, ServerTargetEnum saveToDatabase, int concertVenueId, int performerId ) : ConcertModel

Private Methods

Method Description
PopulateSingleArtistFromDbReader ( System.Data.SqlClient.SqlDataReader dbReader ) : PerformerModel
PopulateSingleConcertFromDbReader ( System.Data.SqlClient.SqlDataReader dbReader ) : ConcertModel

Method Details

AddNewArtist() public method

public AddNewArtist ( String artistName ) : PerformerModel
artistName String
return Tenant.Mvc.Core.Models.PerformerModel

DeleteConcert() public method

public DeleteConcert ( int concertId ) : System.Boolean
concertId int
return System.Boolean

GetArtistById() public method

public GetArtistById ( int artistId ) : PerformerModel
artistId int
return Tenant.Mvc.Core.Models.PerformerModel

GetArtistByName() public method

public GetArtistByName ( String artistName ) : PerformerModel
artistName String
return Tenant.Mvc.Core.Models.PerformerModel

GetArtists() public method

public GetArtists ( ) : List
return List

GetConcertById() public method

public GetConcertById ( int concertId ) : ConcertModel
concertId int
return Tenant.Mvc.Core.Models.ConcertModel

GetConcertByName() public method

public GetConcertByName ( String concertName ) : ConcertModel
concertName String
return Tenant.Mvc.Core.Models.ConcertModel

GetConcertIdToDbSaveMap() public method

public GetConcertIdToDbSaveMap ( ) : int>>.List
return int>>.List

GetConcerts() public method

public GetConcerts ( int venueId, bool orderByName = false ) : List
venueId int
orderByName bool
return List

SaveNewConcert() public method

public SaveNewConcert ( String concertName, String concertDescription, System.DateTime concertDateTime, ServerTargetEnum saveToDatabase, int concertVenueId, int performerId ) : ConcertModel
concertName String
concertDescription String
concertDateTime System.DateTime
saveToDatabase ServerTargetEnum
concertVenueId int
performerId int
return Tenant.Mvc.Core.Models.ConcertModel