mirror of
https://github.com/farcasclaudiu/PracticeCalendar.git
synced 2026-06-22 09:01:18 +03:00
Add project files.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
using Ardalis.Specification;
|
||||
|
||||
namespace PracticeCalendar.Domain.Entities.Specifications
|
||||
{
|
||||
public class PracticeEventByIdWithAttendees : Specification<PracticeEvent>
|
||||
{
|
||||
public PracticeEventByIdWithAttendees(int eventId)
|
||||
{
|
||||
Query.Where(x=>x.Id == eventId)
|
||||
.Include(x => x.Attendees);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using Ardalis.Specification;
|
||||
|
||||
namespace PracticeCalendar.Domain.Entities.Specifications
|
||||
{
|
||||
public class PracticeEventsWithAttendees : Specification<PracticeEvent>
|
||||
{
|
||||
public PracticeEventsWithAttendees()
|
||||
{
|
||||
Query.Include(x => x.Attendees);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user