Update interface of StatsRepo
This commit is contained in:
@@ -1,13 +1,18 @@
|
|||||||
using skydiveLogs_api.Domain;
|
using skydiveLogs_api.Domain;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace skydiveLogs_api.DomainService.Repositories
|
namespace skydiveLogs_api.DomainService.Repositories
|
||||||
{
|
{
|
||||||
public interface IStatsRepository<T> : IRepository<T>
|
public interface IStatsRepository<T>
|
||||||
{
|
{
|
||||||
#region Public Methods
|
#region Public Methods
|
||||||
|
|
||||||
T GetAll(User user);
|
T GetAll(User user);
|
||||||
|
|
||||||
|
int Add(T newEntity);
|
||||||
|
|
||||||
|
bool Update(T updated);
|
||||||
|
|
||||||
#endregion Public Methods
|
#endregion Public Methods
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -37,11 +37,6 @@ namespace skydiveLogs_api.Infrastructure
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEnumerable<StatsByAircraft> GetAll()
|
|
||||||
{
|
|
||||||
throw new System.NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public StatsByAircraft GetAll(User user)
|
public StatsByAircraft GetAll(User user)
|
||||||
{
|
{
|
||||||
return _col.Include(x => x.User)
|
return _col.Include(x => x.User)
|
||||||
@@ -50,16 +45,6 @@ namespace skydiveLogs_api.Infrastructure
|
|||||||
.SingleOrDefault();
|
.SingleOrDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
public StatsByAircraft GetById(int id)
|
|
||||||
{
|
|
||||||
throw new System.NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public int GetCount()
|
|
||||||
{
|
|
||||||
throw new System.NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Update(StatsByAircraft stats)
|
public bool Update(StatsByAircraft stats)
|
||||||
{
|
{
|
||||||
return _col.Update(stats);
|
return _col.Update(stats);
|
||||||
|
|||||||
@@ -37,11 +37,6 @@ namespace skydiveLogs_api.Infrastructure
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEnumerable<StatsByDz> GetAll()
|
|
||||||
{
|
|
||||||
throw new System.NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public StatsByDz GetAll(User user)
|
public StatsByDz GetAll(User user)
|
||||||
{
|
{
|
||||||
return _col.Include(x => x.User)
|
return _col.Include(x => x.User)
|
||||||
@@ -50,16 +45,6 @@ namespace skydiveLogs_api.Infrastructure
|
|||||||
.SingleOrDefault();
|
.SingleOrDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
public StatsByDz GetById(int id)
|
|
||||||
{
|
|
||||||
throw new System.NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public int GetCount()
|
|
||||||
{
|
|
||||||
throw new System.NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Update(StatsByDz stats)
|
public bool Update(StatsByDz stats)
|
||||||
{
|
{
|
||||||
return _col.Update(stats);
|
return _col.Update(stats);
|
||||||
|
|||||||
@@ -37,11 +37,6 @@ namespace skydiveLogs_api.Infrastructure
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEnumerable<StatsByGear> GetAll()
|
|
||||||
{
|
|
||||||
throw new System.NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public StatsByGear GetAll(User user)
|
public StatsByGear GetAll(User user)
|
||||||
{
|
{
|
||||||
return _col.Include(x => x.User)
|
return _col.Include(x => x.User)
|
||||||
@@ -50,16 +45,6 @@ namespace skydiveLogs_api.Infrastructure
|
|||||||
.SingleOrDefault();
|
.SingleOrDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
public StatsByGear GetById(int id)
|
|
||||||
{
|
|
||||||
throw new System.NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public int GetCount()
|
|
||||||
{
|
|
||||||
throw new System.NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Update(StatsByGear stats)
|
public bool Update(StatsByGear stats)
|
||||||
{
|
{
|
||||||
return _col.Update(stats);
|
return _col.Update(stats);
|
||||||
|
|||||||
@@ -37,11 +37,6 @@ namespace skydiveLogs_api.Infrastructure
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEnumerable<StatsByJumpType> GetAll()
|
|
||||||
{
|
|
||||||
throw new System.NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public StatsByJumpType GetAll(User user)
|
public StatsByJumpType GetAll(User user)
|
||||||
{
|
{
|
||||||
return _col.Include(x => x.User)
|
return _col.Include(x => x.User)
|
||||||
@@ -50,16 +45,6 @@ namespace skydiveLogs_api.Infrastructure
|
|||||||
.SingleOrDefault();
|
.SingleOrDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
public StatsByJumpType GetById(int id)
|
|
||||||
{
|
|
||||||
throw new System.NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public int GetCount()
|
|
||||||
{
|
|
||||||
throw new System.NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Update(StatsByJumpType stats)
|
public bool Update(StatsByJumpType stats)
|
||||||
{
|
{
|
||||||
return _col.Update(stats);
|
return _col.Update(stats);
|
||||||
|
|||||||
@@ -37,11 +37,6 @@ namespace skydiveLogs_api.Infrastructure
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEnumerable<StatsByYearByJumpType> GetAll()
|
|
||||||
{
|
|
||||||
throw new System.NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public StatsByYearByJumpType GetAll(User user)
|
public StatsByYearByJumpType GetAll(User user)
|
||||||
{
|
{
|
||||||
return _col.Include(x => x.User)
|
return _col.Include(x => x.User)
|
||||||
@@ -50,16 +45,6 @@ namespace skydiveLogs_api.Infrastructure
|
|||||||
.SingleOrDefault();
|
.SingleOrDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
public StatsByYearByJumpType GetById(int id)
|
|
||||||
{
|
|
||||||
throw new System.NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public int GetCount()
|
|
||||||
{
|
|
||||||
throw new System.NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Update(StatsByYearByJumpType stats)
|
public bool Update(StatsByYearByJumpType stats)
|
||||||
{
|
{
|
||||||
return _col.Update(stats);
|
return _col.Update(stats);
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ using LiteDB;
|
|||||||
using skydiveLogs_api.Domain;
|
using skydiveLogs_api.Domain;
|
||||||
using skydiveLogs_api.DomainService.Repositories;
|
using skydiveLogs_api.DomainService.Repositories;
|
||||||
using skydiveLogs_api.Infrastructure.Interfaces;
|
using skydiveLogs_api.Infrastructure.Interfaces;
|
||||||
using System.Collections.Generic;
|
|
||||||
|
|
||||||
namespace skydiveLogs_api.Infrastructure
|
namespace skydiveLogs_api.Infrastructure
|
||||||
{
|
{
|
||||||
@@ -37,11 +36,6 @@ namespace skydiveLogs_api.Infrastructure
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEnumerable<StatsByYear> GetAll()
|
|
||||||
{
|
|
||||||
throw new System.NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public StatsByYear GetAll(User user)
|
public StatsByYear GetAll(User user)
|
||||||
{
|
{
|
||||||
return _col.Include(x => x.User)
|
return _col.Include(x => x.User)
|
||||||
@@ -50,16 +44,6 @@ namespace skydiveLogs_api.Infrastructure
|
|||||||
.SingleOrDefault();
|
.SingleOrDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
public StatsByYear GetById(int id)
|
|
||||||
{
|
|
||||||
throw new System.NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public int GetCount()
|
|
||||||
{
|
|
||||||
throw new System.NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Update(StatsByYear stats)
|
public bool Update(StatsByYear stats)
|
||||||
{
|
{
|
||||||
return _col.Update(stats);
|
return _col.Update(stats);
|
||||||
|
|||||||
@@ -37,11 +37,6 @@ namespace skydiveLogs_api.Infrastructure
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEnumerable<StatsForLastMonthByDz> GetAll()
|
|
||||||
{
|
|
||||||
throw new System.NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public StatsForLastMonthByDz GetAll(User user)
|
public StatsForLastMonthByDz GetAll(User user)
|
||||||
{
|
{
|
||||||
return _col.Include(x => x.User)
|
return _col.Include(x => x.User)
|
||||||
@@ -50,16 +45,6 @@ namespace skydiveLogs_api.Infrastructure
|
|||||||
.SingleOrDefault();
|
.SingleOrDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
public StatsForLastMonthByDz GetById(int id)
|
|
||||||
{
|
|
||||||
throw new System.NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public int GetCount()
|
|
||||||
{
|
|
||||||
throw new System.NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Update(StatsForLastMonthByDz stats)
|
public bool Update(StatsForLastMonthByDz stats)
|
||||||
{
|
{
|
||||||
return _col.Update(stats);
|
return _col.Update(stats);
|
||||||
|
|||||||
@@ -37,11 +37,6 @@ namespace skydiveLogs_api.Infrastructure
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEnumerable<StatsForLastMonthByJumpType> GetAll()
|
|
||||||
{
|
|
||||||
throw new System.NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public StatsForLastMonthByJumpType GetAll(User user)
|
public StatsForLastMonthByJumpType GetAll(User user)
|
||||||
{
|
{
|
||||||
return _col.Include(x => x.User)
|
return _col.Include(x => x.User)
|
||||||
@@ -50,16 +45,6 @@ namespace skydiveLogs_api.Infrastructure
|
|||||||
.SingleOrDefault();
|
.SingleOrDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
public StatsForLastMonthByJumpType GetById(int id)
|
|
||||||
{
|
|
||||||
throw new System.NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public int GetCount()
|
|
||||||
{
|
|
||||||
throw new System.NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Update(StatsForLastMonthByJumpType stats)
|
public bool Update(StatsForLastMonthByJumpType stats)
|
||||||
{
|
{
|
||||||
return _col.Update(stats);
|
return _col.Update(stats);
|
||||||
|
|||||||
@@ -37,11 +37,6 @@ namespace skydiveLogs_api.Infrastructure
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEnumerable<StatsForLastYearByDz> GetAll()
|
|
||||||
{
|
|
||||||
throw new System.NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public StatsForLastYearByDz GetAll(User user)
|
public StatsForLastYearByDz GetAll(User user)
|
||||||
{
|
{
|
||||||
return _col.Include(x => x.User)
|
return _col.Include(x => x.User)
|
||||||
@@ -50,16 +45,6 @@ namespace skydiveLogs_api.Infrastructure
|
|||||||
.SingleOrDefault();
|
.SingleOrDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
public StatsForLastYearByDz GetById(int id)
|
|
||||||
{
|
|
||||||
throw new System.NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public int GetCount()
|
|
||||||
{
|
|
||||||
throw new System.NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Update(StatsForLastYearByDz stats)
|
public bool Update(StatsForLastYearByDz stats)
|
||||||
{
|
{
|
||||||
return _col.Update(stats);
|
return _col.Update(stats);
|
||||||
|
|||||||
@@ -37,11 +37,6 @@ namespace skydiveLogs_api.Infrastructure
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEnumerable<StatsForLastYearByJumpType> GetAll()
|
|
||||||
{
|
|
||||||
throw new System.NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public StatsForLastYearByJumpType GetAll(User user)
|
public StatsForLastYearByJumpType GetAll(User user)
|
||||||
{
|
{
|
||||||
return _col.Include(x => x.User)
|
return _col.Include(x => x.User)
|
||||||
@@ -50,16 +45,6 @@ namespace skydiveLogs_api.Infrastructure
|
|||||||
.SingleOrDefault();
|
.SingleOrDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
public StatsForLastYearByJumpType GetById(int id)
|
|
||||||
{
|
|
||||||
throw new System.NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public int GetCount()
|
|
||||||
{
|
|
||||||
throw new System.NotImplementedException();
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool Update(StatsForLastYearByJumpType stats)
|
public bool Update(StatsForLastYearByJumpType stats)
|
||||||
{
|
{
|
||||||
return _col.Update(stats);
|
return _col.Update(stats);
|
||||||
|
|||||||
Reference in New Issue
Block a user