LightSwitch 2013 - WCFRIA - 零或一对一的关系 [英] LightSwitch 2013 - WCFRIA - Zero Or One to One relationship

查看:106
本文介绍了LightSwitch 2013 - WCFRIA - 零或一对一的关系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我正在构建Lightswitch 2013 HTML应用程序。

I'm building a Lightswitch 2013 HTML application.

在我的WCFRIA服务中,我有2个类被用作表格。我需要在它们之间添加零或一对一的关系。

Inside my WCFRIA Service, i have 2 classes that are being used as tables. I need to add a Zero Or One to One relationship between them.

我该怎么做?

谢谢。

推荐答案

虽然我不是专家,但我会将RIA类视为一个表,而不是一个表。由于没有任何物理加入,您应该考虑使用左连接到第3个组合类,这将为您提供一个新的平台表,以便在您的应用程序中使用

While I'm not an expert, I'd look at the RIA classes as being like a table, rather than as a table. Since there is nothing physical to join, you should consider using a left join into a 3rd combined class, which will give you a new flat table to utilise in your application.

例如  https://msdn.microsoft.com/en-us/library/bb397895.aspx

e.g. https://msdn.microsoft.com/en-us/library/bb397895.aspx


这篇关于LightSwitch 2013 - WCFRIA - 零或一对一的关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆