hn-dotnet/Application/IHNContext.cs
Julien Leicher 3cd5133f66 add-aspnet-identity (#26)
add exception filter when user not connected
default to needing authentication and apply anonymous to some actions
add user in get requests
add user relation in link, comment and vote
signup and in are ok now!
2020-12-11 17:59:35 +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; }
}
}