Split tables for the stats #6

Merged
sandre merged 11 commits from feature/split-stats-by-tables into master 2026-01-26 13:38:10 +00:00
11 changed files with 6 additions and 152 deletions
Showing only changes of commit 656b578f9b - Show all commits

View File

@@ -1,13 +1,18 @@
using skydiveLogs_api.Domain;
using System.Collections.Generic;
namespace skydiveLogs_api.DomainService.Repositories
{
public interface IStatsRepository<T> : IRepository<T>
public interface IStatsRepository<T>
{
#region Public Methods
T GetAll(User user);
int Add(T newEntity);
bool Update(T updated);
#endregion Public Methods
}
}

View File

@@ -37,11 +37,6 @@ namespace skydiveLogs_api.Infrastructure
return result;
}
public IEnumerable<StatsByAircraft> GetAll()
{
throw new System.NotImplementedException();
}
public StatsByAircraft GetAll(User user)
{
return _col.Include(x => x.User)
@@ -50,16 +45,6 @@ namespace skydiveLogs_api.Infrastructure
.SingleOrDefault();
}
public StatsByAircraft GetById(int id)
{
throw new System.NotImplementedException();
}
public int GetCount()
{
throw new System.NotImplementedException();
}
public bool Update(StatsByAircraft stats)
{
return _col.Update(stats);

View File

@@ -37,11 +37,6 @@ namespace skydiveLogs_api.Infrastructure
return result;
}
public IEnumerable<StatsByDz> GetAll()
{
throw new System.NotImplementedException();
}
public StatsByDz GetAll(User user)
{
return _col.Include(x => x.User)
@@ -50,16 +45,6 @@ namespace skydiveLogs_api.Infrastructure
.SingleOrDefault();
}
public StatsByDz GetById(int id)
{
throw new System.NotImplementedException();
}
public int GetCount()
{
throw new System.NotImplementedException();
}
public bool Update(StatsByDz stats)
{
return _col.Update(stats);

View File

@@ -37,11 +37,6 @@ namespace skydiveLogs_api.Infrastructure
return result;
}
public IEnumerable<StatsByGear> GetAll()
{
throw new System.NotImplementedException();
}
public StatsByGear GetAll(User user)
{
return _col.Include(x => x.User)
@@ -50,16 +45,6 @@ namespace skydiveLogs_api.Infrastructure
.SingleOrDefault();
}
public StatsByGear GetById(int id)
{
throw new System.NotImplementedException();
}
public int GetCount()
{
throw new System.NotImplementedException();
}
public bool Update(StatsByGear stats)
{
return _col.Update(stats);

View File

@@ -37,11 +37,6 @@ namespace skydiveLogs_api.Infrastructure
return result;
}
public IEnumerable<StatsByJumpType> GetAll()
{
throw new System.NotImplementedException();
}
public StatsByJumpType GetAll(User user)
{
return _col.Include(x => x.User)
@@ -50,16 +45,6 @@ namespace skydiveLogs_api.Infrastructure
.SingleOrDefault();
}
public StatsByJumpType GetById(int id)
{
throw new System.NotImplementedException();
}
public int GetCount()
{
throw new System.NotImplementedException();
}
public bool Update(StatsByJumpType stats)
{
return _col.Update(stats);

View File

@@ -37,11 +37,6 @@ namespace skydiveLogs_api.Infrastructure
return result;
}
public IEnumerable<StatsByYearByJumpType> GetAll()
{
throw new System.NotImplementedException();
}
public StatsByYearByJumpType GetAll(User user)
{
return _col.Include(x => x.User)
@@ -50,16 +45,6 @@ namespace skydiveLogs_api.Infrastructure
.SingleOrDefault();
}
public StatsByYearByJumpType GetById(int id)
{
throw new System.NotImplementedException();
}
public int GetCount()
{
throw new System.NotImplementedException();
}
public bool Update(StatsByYearByJumpType stats)
{
return _col.Update(stats);

View File

@@ -2,7 +2,6 @@ using LiteDB;
using skydiveLogs_api.Domain;
using skydiveLogs_api.DomainService.Repositories;
using skydiveLogs_api.Infrastructure.Interfaces;
using System.Collections.Generic;
namespace skydiveLogs_api.Infrastructure
{
@@ -37,11 +36,6 @@ namespace skydiveLogs_api.Infrastructure
return result;
}
public IEnumerable<StatsByYear> GetAll()
{
throw new System.NotImplementedException();
}
public StatsByYear GetAll(User user)
{
return _col.Include(x => x.User)
@@ -50,16 +44,6 @@ namespace skydiveLogs_api.Infrastructure
.SingleOrDefault();
}
public StatsByYear GetById(int id)
{
throw new System.NotImplementedException();
}
public int GetCount()
{
throw new System.NotImplementedException();
}
public bool Update(StatsByYear stats)
{
return _col.Update(stats);

View File

@@ -37,11 +37,6 @@ namespace skydiveLogs_api.Infrastructure
return result;
}
public IEnumerable<StatsForLastMonthByDz> GetAll()
{
throw new System.NotImplementedException();
}
public StatsForLastMonthByDz GetAll(User user)
{
return _col.Include(x => x.User)
@@ -50,16 +45,6 @@ namespace skydiveLogs_api.Infrastructure
.SingleOrDefault();
}
public StatsForLastMonthByDz GetById(int id)
{
throw new System.NotImplementedException();
}
public int GetCount()
{
throw new System.NotImplementedException();
}
public bool Update(StatsForLastMonthByDz stats)
{
return _col.Update(stats);

View File

@@ -37,11 +37,6 @@ namespace skydiveLogs_api.Infrastructure
return result;
}
public IEnumerable<StatsForLastMonthByJumpType> GetAll()
{
throw new System.NotImplementedException();
}
public StatsForLastMonthByJumpType GetAll(User user)
{
return _col.Include(x => x.User)
@@ -50,16 +45,6 @@ namespace skydiveLogs_api.Infrastructure
.SingleOrDefault();
}
public StatsForLastMonthByJumpType GetById(int id)
{
throw new System.NotImplementedException();
}
public int GetCount()
{
throw new System.NotImplementedException();
}
public bool Update(StatsForLastMonthByJumpType stats)
{
return _col.Update(stats);

View File

@@ -37,11 +37,6 @@ namespace skydiveLogs_api.Infrastructure
return result;
}
public IEnumerable<StatsForLastYearByDz> GetAll()
{
throw new System.NotImplementedException();
}
public StatsForLastYearByDz GetAll(User user)
{
return _col.Include(x => x.User)
@@ -50,16 +45,6 @@ namespace skydiveLogs_api.Infrastructure
.SingleOrDefault();
}
public StatsForLastYearByDz GetById(int id)
{
throw new System.NotImplementedException();
}
public int GetCount()
{
throw new System.NotImplementedException();
}
public bool Update(StatsForLastYearByDz stats)
{
return _col.Update(stats);

View File

@@ -37,11 +37,6 @@ namespace skydiveLogs_api.Infrastructure
return result;
}
public IEnumerable<StatsForLastYearByJumpType> GetAll()
{
throw new System.NotImplementedException();
}
public StatsForLastYearByJumpType GetAll(User user)
{
return _col.Include(x => x.User)
@@ -50,16 +45,6 @@ namespace skydiveLogs_api.Infrastructure
.SingleOrDefault();
}
public StatsForLastYearByJumpType GetById(int id)
{
throw new System.NotImplementedException();
}
public int GetCount()
{
throw new System.NotImplementedException();
}
public bool Update(StatsForLastYearByJumpType stats)
{
return _col.Update(stats);