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!
17 lines
353 B
C#
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; }
|
|
}
|
|
}
|