Look at the situation: Having 4 classes as follows description below, how could I when choosing a Task in OrderService automatically include CheckLists (detail) connected to this Task in OrderCheckList?

OrderService (1 to 1 relationship with Tasks) (1-to-many relationship with CheckListsOrder)

Tasks (1-to-many relationship with checklists)

CheckLists

OrderCheckLists

Thanks!

有帮助吗?

解决方案

To include detail editor you can use [EditorAlias(EditorAliases.DetailPropertyEditor)] attribute, but if I am not mistaken this would only work for 1-1 relationships (i might be wrong - check in the documentation)

Also worth looking at is this attribute: [ExpandObjectMembersAttribute(ExpandObjectMembers.Never)]

Hope this at least points you in a right direction.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top