C# Class BolfTracker.Infrastructure.EntityFramework.PlayerRepository

Inheritance: IPlayerRepository
显示文件 Open project: mkchandler/bolf-tracker-mvc

Public Methods

Method Description
Add ( BolfTracker.Models.Player model ) : void
All ( ) : IEnumerable
Delete ( BolfTracker.Models.Player model ) : void
GetActiveByMonthAndYear ( int month, int year ) : IEnumerable
GetByGame ( int gameId ) : IEnumerable
GetById ( int id ) : BolfTracker.Models.Player
GetByName ( string name ) : BolfTracker.Models.Player
Update ( BolfTracker.Models.Player player ) : void

Method Details

Add() public method

public Add ( BolfTracker.Models.Player model ) : void
model BolfTracker.Models.Player
return void

All() public method

public All ( ) : IEnumerable
return IEnumerable

Delete() public method

public Delete ( BolfTracker.Models.Player model ) : void
model BolfTracker.Models.Player
return void

GetActiveByMonthAndYear() public method

public GetActiveByMonthAndYear ( int month, int year ) : IEnumerable
month int
year int
return IEnumerable

GetByGame() public method

public GetByGame ( int gameId ) : IEnumerable
gameId int
return IEnumerable

GetById() public method

public GetById ( int id ) : BolfTracker.Models.Player
id int
return BolfTracker.Models.Player

GetByName() public method

public GetByName ( string name ) : BolfTracker.Models.Player
name string
return BolfTracker.Models.Player

Update() public method

public Update ( BolfTracker.Models.Player player ) : void
player BolfTracker.Models.Player
return void