argh
continuous-integration/drone/push Build is passing Details

pull/110/head
Alexis Drai 2 years ago
parent 722a4314fa
commit cfb495cd68

@ -3,7 +3,7 @@ using Model;
namespace Data.EF.Players namespace Data.EF.Players
{ {
public sealed class PlayerDbManager : IManager<PlayerEntity>, IDisposable public sealed class PlayerDbManager : IManager<PlayerEntity>
{ {
private readonly DiceAppDbContext db; private readonly DiceAppDbContext db;
public PlayerDbManager(DiceAppDbContext db) public PlayerDbManager(DiceAppDbContext db)
@ -11,11 +11,6 @@ namespace Data.EF.Players
this.db = db; this.db = db;
} }
public void Dispose()
{
db.Dispose();
}
public PlayerEntity Add(PlayerEntity toAdd) public PlayerEntity Add(PlayerEntity toAdd)
{ {
if (db.Players!.Where(entity => entity.Name == toAdd.Name).Any()) if (db.Players!.Where(entity => entity.Name == toAdd.Name).Any())

Loading…
Cancel
Save