C# Class BolfTracker.Infrastructure.EntityFramework.ShotRepository

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

Public Methods

Method Description
Add ( BolfTracker.Models.Shot shot ) : void
All ( ) : IEnumerable
Delete ( int id ) : void
DeleteToShot ( int gameId, int shotId ) : void
GetByGame ( int gameId ) : IEnumerable
GetByGameAndPlayer ( int gameId, int playerId ) : IEnumerable
GetById ( int id ) : BolfTracker.Models.Shot
GetByMonthAndYear ( int month, int year ) : IEnumerable
Update ( BolfTracker.Models.Shot shot ) : void

Method Details

Add() public method

public Add ( BolfTracker.Models.Shot shot ) : void
shot BolfTracker.Models.Shot
return void

All() public method

public All ( ) : IEnumerable
return IEnumerable

Delete() public method

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

DeleteToShot() public method

public DeleteToShot ( int gameId, int shotId ) : void
gameId int
shotId int
return void

GetByGame() public method

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

GetByGameAndPlayer() public method

public GetByGameAndPlayer ( int gameId, int playerId ) : IEnumerable
gameId int
playerId int
return IEnumerable

GetById() public method

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

GetByMonthAndYear() public method

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

Update() public method

public Update ( BolfTracker.Models.Shot shot ) : void
shot BolfTracker.Models.Shot
return void