相同数据的不同过滤数据提供者?
我有几个查找表,其中一些引用其他表或它们之间的关系。
例如,我有会员类型包含库存
,它具有会员 ID 和库存类型 ID,并且是当一个人获得特定类型的会员资格时获得的每种库存类型的金额。
当用户查看库存类型时,我希望他们看到每种会员类型对应的金额; 当用户查看会员类型时,我希望他们看到该会员会获得哪些库存。
我是否可以仅对 InvetoryType 实例使用一个 ArrayCollection,对 MembershipType 实例仅使用一个 ArrayCollection,并以某种方式创建过滤器来获取数据的不同“视图”?
每个“视图”都需要自己的光标、排序顺序、过滤器等。
干杯
I have several lookup tables, some of which refer to or are relationships between others.
For instance, I have membership type included inventory
which has Membership ID and Inventory Type ID and is the amount of each Inventory Type that one gets when one gets a specific type of membership.
When the user is reviewing an Inventory Type, I want them to see the amounts that go with each Membership Type; when the user is reviewing a Membership Type, I want them to see what inventory that membership would get.
Can I use a only one ArrayCollection for InvetoryType instances and only one ArrayCollection for MembershipType instances and somehow create filters to get different "views" of the data?
Each "view" would need its own cursor, sorting sequence, filter, etc.
Cheers
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以将单个 Array 实例与多个 ArrayCollection 实例一起使用。 如果您只是显示数据,或者使用 ArrayCollection 提供的方法/属性进行排序和过滤(而不是直接编辑 Array),那么它应该不会对底层共享数组。
You can use a single
Array
instance with multipleArrayCollection
instances. If you're just displaying data, or sorting and filtering using the methods/properties provided byArrayCollection
(rather than editing theArray
directly), it should have no effect on the underlying sharedArray
.