I diff'ed two instance of Order where a new OrderDetail instance had been added to the array of one: changedOrder. If the originalOrder was on the left in the function call, then the resulting diff.PropertyType evaluated to "System.Collections.Generic.List'1[Models.OrderDetail]", as expected. --> However, ifchangedOrder was on the left, then the diff.Property type evaluated to "Models.OrderDetail".
Note that in both cases, the diff.Property value was "OrderDetails" (with an 's'), which is the collection variable's name.
I diff'ed two instance of
Order
where a newOrderDetail
instance had been added to the array of one:changedOrder
. If theoriginalOrder
was on the left in the function call, then the resultingdiff.PropertyType
evaluated to "System.Collections.Generic.List'1[Models.OrderDetail]", as expected. --> However, ifchangedOrder
was on the left, then thediff.Property
type evaluated to "Models.OrderDetail".Note that in both cases, the
diff.Property
value was "OrderDetails" (with an 's'), which is the collection variable's name.