C# Class BrokenShoeLeague.Data.BrokenShoeLeagueContext

Inheritance: DbContext, IBrokenShoeLeagueRepository
Show file Open project: YeeRSoft/broken-shoe-league

Public Methods

Method Description
AddComment ( BrokenShoeLeague.Domain.Comment c ) : void
AddPlayerToMatchday ( Matchday matchday, int playerId ) : void
BrokenShoeLeagueContext ( ) : System
CreateImageCarousel ( BrokenShoeLeague.Domain.ImageCarousel imageCarousel ) : void
CreateMatchday ( Matchday matchday ) : void
CreatePlayer ( Player newPlayer ) : void
CreatePlayerRecord ( PlayerRecord playerRecord ) : void
CreateSeason ( Season season ) : void
FindUser ( bool>.Func pred ) : BrokenShoeLeague.Domain.UserProfile
GetAllComments ( ) : IQueryable
GetAllImageCarousel ( ) : IQueryable
GetAllMatchdays ( ) : IQueryable
GetAllPlayerRecords ( ) : IQueryable
GetAllPlayers ( ) : IQueryable
GetAllSeasons ( ) : IQueryable
GetAllUsers ( ) : IQueryable
GetCommentById ( int id ) : BrokenShoeLeague.Domain.Comment
GetImageCarouselById ( int id ) : BrokenShoeLeague.Domain.ImageCarousel
GetMatchdayById ( int id ) : Matchday
GetPlayerById ( int id ) : Player
GetPlayerByName ( string name ) : Player
GetPlayerRecordById ( int id ) : PlayerRecord
GetSeasonById ( int id ) : Season
IBrokenShoeLeagueRepository ( ) : void
MatchdayExist ( int matchdayId ) : bool
PlayerExist ( int playerId ) : bool
RemoveComment ( BrokenShoeLeague.Domain.Comment c ) : void
RemoveComment ( int id ) : void
RemoveImageCarousel ( BrokenShoeLeague.Domain.ImageCarousel imageCarousel ) : void
RemoveMatchday ( Matchday matchday ) : void
RemovePlayer ( Player player ) : void
RemovePlayerRecord ( PlayerRecord playerRecord ) : void
RemoveSeason ( Season season ) : void
SeasonExist ( int seasonId ) : bool
UpdateImageCarousel ( int id, BrokenShoeLeague.Domain.ImageCarousel data ) : void
UpdatePlayer ( Player player ) : void
UpdatePlayerRecord ( int playerRecordId, PlayerRecord data ) : void

Method Details

AddComment() public method

public AddComment ( BrokenShoeLeague.Domain.Comment c ) : void
c BrokenShoeLeague.Domain.Comment
return void

AddPlayerToMatchday() public method

public AddPlayerToMatchday ( Matchday matchday, int playerId ) : void
matchday BrokenShoeLeague.Domain.Matchday
playerId int
return void

BrokenShoeLeagueContext() public method

public BrokenShoeLeagueContext ( ) : System
return System

CreateImageCarousel() public method

public CreateImageCarousel ( BrokenShoeLeague.Domain.ImageCarousel imageCarousel ) : void
imageCarousel BrokenShoeLeague.Domain.ImageCarousel
return void

CreateMatchday() public method

public CreateMatchday ( Matchday matchday ) : void
matchday BrokenShoeLeague.Domain.Matchday
return void

CreatePlayer() public method

public CreatePlayer ( Player newPlayer ) : void
newPlayer BrokenShoeLeague.Domain.Player
return void

CreatePlayerRecord() public method

public CreatePlayerRecord ( PlayerRecord playerRecord ) : void
playerRecord BrokenShoeLeague.Domain.PlayerRecord
return void

CreateSeason() public method

public CreateSeason ( Season season ) : void
season BrokenShoeLeague.Domain.Season
return void

FindUser() public method

public FindUser ( bool>.Func pred ) : BrokenShoeLeague.Domain.UserProfile
pred bool>.Func
return BrokenShoeLeague.Domain.UserProfile

GetAllComments() public method

public GetAllComments ( ) : IQueryable
return IQueryable

GetAllImageCarousel() public method

public GetAllImageCarousel ( ) : IQueryable
return IQueryable

GetAllMatchdays() public method

public GetAllMatchdays ( ) : IQueryable
return IQueryable

GetAllPlayerRecords() public method

public GetAllPlayerRecords ( ) : IQueryable
return IQueryable

GetAllPlayers() public method

public GetAllPlayers ( ) : IQueryable
return IQueryable

GetAllSeasons() public method

public GetAllSeasons ( ) : IQueryable
return IQueryable

GetAllUsers() public method

public GetAllUsers ( ) : IQueryable
return IQueryable

GetCommentById() public method

public GetCommentById ( int id ) : BrokenShoeLeague.Domain.Comment
id int
return BrokenShoeLeague.Domain.Comment

GetImageCarouselById() public method

public GetImageCarouselById ( int id ) : BrokenShoeLeague.Domain.ImageCarousel
id int
return BrokenShoeLeague.Domain.ImageCarousel

GetMatchdayById() public method

public GetMatchdayById ( int id ) : Matchday
id int
return BrokenShoeLeague.Domain.Matchday

GetPlayerById() public method

public GetPlayerById ( int id ) : Player
id int
return BrokenShoeLeague.Domain.Player

GetPlayerByName() public method

public GetPlayerByName ( string name ) : Player
name string
return BrokenShoeLeague.Domain.Player

GetPlayerRecordById() public method

public GetPlayerRecordById ( int id ) : PlayerRecord
id int
return BrokenShoeLeague.Domain.PlayerRecord

GetSeasonById() public method

public GetSeasonById ( int id ) : Season
id int
return BrokenShoeLeague.Domain.Season

IBrokenShoeLeagueRepository() public method

public IBrokenShoeLeagueRepository ( ) : void
return void

MatchdayExist() public method

public MatchdayExist ( int matchdayId ) : bool
matchdayId int
return bool

PlayerExist() public method

public PlayerExist ( int playerId ) : bool
playerId int
return bool

RemoveComment() public method

public RemoveComment ( BrokenShoeLeague.Domain.Comment c ) : void
c BrokenShoeLeague.Domain.Comment
return void

RemoveComment() public method

public RemoveComment ( int id ) : void
id int
return void

RemoveImageCarousel() public method

public RemoveImageCarousel ( BrokenShoeLeague.Domain.ImageCarousel imageCarousel ) : void
imageCarousel BrokenShoeLeague.Domain.ImageCarousel
return void

RemoveMatchday() public method

public RemoveMatchday ( Matchday matchday ) : void
matchday BrokenShoeLeague.Domain.Matchday
return void

RemovePlayer() public method

public RemovePlayer ( Player player ) : void
player BrokenShoeLeague.Domain.Player
return void

RemovePlayerRecord() public method

public RemovePlayerRecord ( PlayerRecord playerRecord ) : void
playerRecord BrokenShoeLeague.Domain.PlayerRecord
return void

RemoveSeason() public method

public RemoveSeason ( Season season ) : void
season BrokenShoeLeague.Domain.Season
return void

SeasonExist() public method

public SeasonExist ( int seasonId ) : bool
seasonId int
return bool

UpdateImageCarousel() public method

public UpdateImageCarousel ( int id, BrokenShoeLeague.Domain.ImageCarousel data ) : void
id int
data BrokenShoeLeague.Domain.ImageCarousel
return void

UpdatePlayer() public method

public UpdatePlayer ( Player player ) : void
player BrokenShoeLeague.Domain.Player
return void

UpdatePlayerRecord() public method

public UpdatePlayerRecord ( int playerRecordId, PlayerRecord data ) : void
playerRecordId int
data BrokenShoeLeague.Domain.PlayerRecord
return void