hn-dotnet/Application/IHNContext.cs
2020-12-11 16:17:44 +01:00

17 lines
353 B
C#

using System.Linq;
using HN.Domain;
using Microsoft.EntityFrameworkCore;
namespace HN.Application
{
/// <summary>
/// Interface permettant l'accès aux DbSet pour toute la partie Query.
/// </summary>
public interface IHNContext
{
DbSet<Link> Links { get; }
DbSet<Comment> Comments { get; }
IQueryable<IUser> Users { get; }
}
}