您如何渴望加载子对象?

编程入门 行业动态 更新时间:2024-10-28 02:34:49
本文介绍了您如何渴望加载子对象?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

在Server项目中,我有一个Bill.lsml.cs类

In the Server project I have a Bill.lsml.cs class

在该班级中,有一个名为Bill previousBill的班级成员

In that class, there is a class member called Bill previousBill

每个输入和/或更新的新账单都需要与其以前的账单进行比较.

Every new bill that gets entered and/or updated needs to be compared to its previousBill.

在代码中,我试图尽快加载与previousBill相关的所有子对象,包括子对象的子对象. .include()引发不受支持的异常.

In code, I am trying to eagerly load all child objects related to previousBill, including child objects of child objects. .Include() throws an unsupported exception.

您如何在Lightswitch中执行此操作?我知道管理包含的数据"屏幕上的选项,但此对象不在屏幕上,也不需要.

How do you do this in Lightswitch? I'm aware of the "Manage Included Data" options on screen but this object is not on screen and does not need to be.

推荐答案

如果在服务器端进行比较,您需要什么载入?您可以通过导航属性访问linq中的所有子数据. 您可以举一个您想做的事的例子吗?

If you are doing the comparison on the server side, what do you need to load? You have access to all of the child data in linq via the navigation property. Can you post an example of what you are trying to do?

更多推荐

您如何渴望加载子对象?

本文发布于:2023-08-04 06:05:45,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1293639.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:加载   对象

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!