NadekoBot/NadekoBot.Core/Services/Database/IUnitOfWork.cs

34 lines
1.2 KiB
C#
Raw Normal View History

using NadekoBot.Services.Database.Repositories;
using System;
using System.Threading.Tasks;
namespace NadekoBot.Services.Database
{
public interface IUnitOfWork : IDisposable
{
NadekoContext _context { get; }
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 17:23:47 +00:00
IClashOfClansRepository ClashOfClans { get; }
2016-08-25 22:05:29 +00:00
IReminderRepository Reminders { get; }
2016-08-26 17:25:54 +00:00
ISelfAssignedRolesRepository SelfAssignedRoles { get; }
IBotConfigRepository BotConfig { get; }
2016-09-04 13:11:02 +00:00
IUnitConverterRepository ConverterUnits { get; }
ICustomReactionRepository CustomReactions { get; }
ICurrencyRepository Currency { get; }
ICurrencyTransactionsRepository CurrencyTransactions { get; }
IMusicPlaylistRepository MusicPlaylists { get; }
IPokeGameRepository PokeGame { get; }
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; }
IClubRepository Clubs { get; }
2016-08-25 17:23:47 +00:00
2016-08-24 13:29:01 +00:00
int Complete();
Task<int> CompleteAsync();
}
}