Blog信息 |
blog名称:注册会计师(注会)练习软件 日志总数:398 评论数量:116 留言数量:27 访问次数:3266724 建立时间:2005年6月6日 |

| |
[borland eco 技术]返回eco列表集的几种方法 软件技术
吕向阳 发表于 2007/10/2 14:14:28 |
IObjectList customers = vfs.CreateTypedObjectList(typeof(Customer)); foreach (Customer currentCustomer in someOtherList) customers.Add(currentCustomer);
//If a customer has a single contract IObjectList result = OclPs.Execute(customers, "self.contract");
//If a customer has many contracts IObjectList result = OclPs.Execute(customers, "self.contracts");
//If the association is one way from contract to customer IObjectList result = OclPs.Execute(customers, "Contract.allInstances->select(currentContract | currentContract.customer->includes(self))");
Might not compile though :-) |
|
|