从实体A的给定实例中获取实体B的所有实例的总和 [英] getting the sum of all instances of Entity B from a given instance of Entity A

查看:75
本文介绍了从实体A的给定实例中获取实体B的所有实例的总和的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在实体A和实体B(iOS核心数据应用程序)之间有很多关系.我需要从给定的实体A实例中获取实体B的所有实例的NSDecimalNumber属性的总和.有人有这个的教程或示例吗?

I have a to-many relationship between Entity A and Entity B (iOS Core Data app). I need to get the sum of the NSDecimalNumber attribute of all instances of Entity B from a given instance of Entity A. Does anyone have a tutorial or example of this?

推荐答案

您将使用

这篇关于从实体A的给定实例中获取实体B的所有实例的总和的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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