Browse Source

Replace Magic String with nameof (#74)

main
Steve Smith 8 years ago
committed by GitHub
parent
commit
9d32c48c30
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/ApplicationCore/Specifications/CustomerOrdersWithItemsSpecification.cs

3
src/ApplicationCore/Specifications/CustomerOrdersWithItemsSpecification.cs

@ -8,7 +8,8 @@ namespace ApplicationCore.Specifications
: base(o => o.BuyerId == buyerId)
{
AddInclude(o => o.OrderItems);
AddInclude("OrderItems.ItemOrdered");
//AddInclude("OrderItems.ItemOrdered");
AddInclude($"{nameof(Order.OrderItems)}.{nameof(OrderItem.ItemOrdered)}");
}
}
}

Loading…
Cancel
Save