Refactor all code
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
using Ardalis.Specification;
|
||||
using PyroFetes.Models;
|
||||
|
||||
namespace PyroFetes.Specifications.DeliveryNotes;
|
||||
|
||||
public class GetAllDeliveryNoteSpec : Specification<DeliveryNote>
|
||||
{
|
||||
public GetAllDeliveryNoteSpec()
|
||||
{
|
||||
Query
|
||||
.Include(x => x.Deliverer)
|
||||
.Include(x => x.ProductDeliveries)!
|
||||
.ThenInclude(x => x.Product)
|
||||
.Where(x => true);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user