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

32 lines
1.1 KiB
C#
Raw Normal View History

using NadekoBot.Core.Services.Database.Repositories;
using System;
using System.Threading.Tasks;
namespace NadekoBot.Core.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 22:05:29 +00:00
IReminderRepository Reminders { get; }
2016-08-26 17:25:54 +00:00
ISelfAssignedRolesRepository SelfAssignedRoles { get; }
IBotConfigRepository BotConfig { 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();
}
}