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