2017-10-13 06:14:54 +02:00
|
|
|
|
using NadekoBot.Core.Services.Database.Repositories;
|
2016-08-24 03:32:48 +02:00
|
|
|
|
using System;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
2017-10-13 06:14:54 +02:00
|
|
|
|
namespace NadekoBot.Core.Services.Database
|
2016-08-24 03:32:48 +02:00
|
|
|
|
{
|
|
|
|
|
public interface IUnitOfWork : IDisposable
|
|
|
|
|
{
|
2016-10-08 04:25:12 +02:00
|
|
|
|
NadekoContext _context { get; }
|
|
|
|
|
|
2016-08-24 03:32:48 +02:00
|
|
|
|
IQuoteRepository Quotes { get; }
|
2016-08-26 19:25:54 +02:00
|
|
|
|
IGuildConfigRepository GuildConfigs { get; }
|
2016-08-24 19:04:24 +02:00
|
|
|
|
IDonatorsRepository Donators { get; }
|
2016-08-26 00:05:29 +02:00
|
|
|
|
IReminderRepository Reminders { get; }
|
2016-08-26 19:25:54 +02:00
|
|
|
|
ISelfAssignedRolesRepository SelfAssignedRoles { get; }
|
2016-08-28 02:46:36 +02:00
|
|
|
|
IBotConfigRepository BotConfig { get; }
|
2016-10-08 04:25:12 +02:00
|
|
|
|
ICustomReactionRepository CustomReactions { get; }
|
|
|
|
|
ICurrencyRepository Currency { get; }
|
2016-10-15 02:58:15 +02:00
|
|
|
|
ICurrencyTransactionsRepository CurrencyTransactions { get; }
|
2016-10-08 04:25:12 +02:00
|
|
|
|
IMusicPlaylistRepository MusicPlaylists { get; }
|
2016-11-27 03:51:10 +01:00
|
|
|
|
IPokeGameRepository PokeGame { get; }
|
2017-01-22 21:06:10 +01:00
|
|
|
|
IWaifuRepository Waifus { get; }
|
|
|
|
|
IDiscordUserRepository DiscordUsers { get; }
|
2017-03-30 03:51:54 +02:00
|
|
|
|
IWarningsRepository Warnings { get; }
|
2017-08-22 05:48:45 +02:00
|
|
|
|
IXpRepository Xp { get; }
|
2017-09-10 03:52:34 +02:00
|
|
|
|
IClubRepository Clubs { get; }
|
2017-10-27 18:39:56 +02:00
|
|
|
|
IPollsRepository Polls { get; }
|
2016-08-25 19:23:47 +02:00
|
|
|
|
|
2016-08-24 15:29:01 +02:00
|
|
|
|
int Complete();
|
|
|
|
|
Task<int> CompleteAsync();
|
2016-08-24 03:32:48 +02:00
|
|
|
|
}
|
|
|
|
|
}
|