具有不同项目实体的董事会实体 [英] Board entity with different Item entities

查看:87
本文介绍了具有不同项目实体的董事会实体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个董事会实体和几个项目实体(1:n关系).问题在于,项实体在某些属性上是不同的,例如,具有文本属性的注释项和具有图像源路径的图像项.因此,我想加载板上的所有项目,然后 在LongListSelector中显示它们,但是存在一些问题:

I have Board entity and a few Item entities (1:n relation). The problem is, the Item entites are different in some properties, for example a Note Item with a text property and Image Item with a image source path. So, I want to load all Items of a Board and show them in a LongListSelector, but there are some problems:

-我需要为每个项目类型使用单独的表格吗?

- Do I need for each Item type a seperate Table?

-我需要为每种项目类型在董事会实体中使用单独的EntitySet吗?

- Do I need for each Item type a seperated EntitySet in the Board entity?

-如何在一个LongList中显示不同的项目?

- How can I show different Items in one LongList?

我希望我的问题是可以理解的!

I hope my problem is understandable!

推荐答案

你好

好吧,您不需要单独的表格,但是如果您想了解更多信息

well you don't need to have separate tables but if you like to know more

您可以查看这篇文章,这可能对您很有帮助

you can check this article it might be very helpful for you

http://www.windowsphonegeek.com/articles/wp7-longlistselector-in-depth--part1-visual-structure-and-api


这篇关于具有不同项目实体的董事会实体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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