Skip to content

Commit

Permalink
Replace Magic String with nameof (dotnet-architecture#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
ardalis authored Jan 4, 2018
1 parent 9fcc88c commit 9d32c48
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ public CustomerOrdersWithItemsSpecification(string buyerId)
: base(o => o.BuyerId == buyerId)
{
AddInclude(o => o.OrderItems);
AddInclude("OrderItems.ItemOrdered");
//AddInclude("OrderItems.ItemOrdered");
AddInclude($"{nameof(Order.OrderItems)}.{nameof(OrderItem.ItemOrdered)}");
}
}
}

0 comments on commit 9d32c48

Please sign in to comment.