mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 01:38:27 -04:00
16 lines
511 B
C#
16 lines
511 B
C#
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using LinqToDB.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using NadekoBot.Services.Database.Models;
|
|
|
|
namespace NadekoBot.Modules.Searches
|
|
{
|
|
public static class AtlExtensions
|
|
{
|
|
public static Task<AutoTranslateChannel> GetByChannelId(this IQueryable<AutoTranslateChannel> set, ulong channelId)
|
|
=> set
|
|
.Include(x => x.Users)
|
|
.FirstOrDefaultAsyncEF(x => x.ChannelId == channelId);
|
|
}
|
|
} |