Files
BeReadyBackend/BeReadyBackend/Specifications/Posts/GetPostNotMeSpec.cs
T
2026-04-21 11:04:25 +02:00

14 lines
307 B
C#

using Ardalis.Specification;
using BeReadyBackend.Models;
namespace BeReadyBackend.Specifications.Posts;
public class GetPostNotMeSpec : Specification<Post>
{
public GetPostNotMeSpec(int userId)
{
Query
.Include(x => x.User)
.Where(x => x.UserId != userId);
}
}