mirror of
https://github.com/farcasclaudiu/PracticeCalendar.git
synced 2026-06-28 19:01:07 +03:00
play with storing valueobjects
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
using Ardalis.Specification;
|
||||
|
||||
namespace PracticeCalendar.Domain.Entities.PracticeEvent.Specifications
|
||||
{
|
||||
public class PracticeEventByIdWithAttendeesSpecification : Specification<PracticeEvent>
|
||||
{
|
||||
public PracticeEventByIdWithAttendeesSpecification(int eventId)
|
||||
{
|
||||
Query.Where(x => x.Id == eventId)
|
||||
.Include(x => x.Attendees);
|
||||
}
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
using Ardalis.Specification;
|
||||
|
||||
namespace PracticeCalendar.Domain.Entities.PracticeEvent.Specifications
|
||||
{
|
||||
public class PracticeEventsWithAttendeesSpecification : Specification<PracticeEvent>
|
||||
{
|
||||
public PracticeEventsWithAttendeesSpecification()
|
||||
{
|
||||
Query.AsNoTracking()
|
||||
.Include(x => x.Attendees);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user