A First Look at ObjectSpaces in Visual Studio "Whidbey".

ObjectSpaces是将集成在Whidbey中的O/R Mapping组件。

具体参见:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnadonet/html/objectspaces.asp

即将release的ObjectSpaces暂时只支持SQL Server 2000 & SQL Server Yukon。

在执行查询的时候,ObjectSpaces使用的是称之为OPath的query string,并且还将支持称之为Span的参数,用于指定是否级联返回一个对象的子对象集合:
“A span is a comma-separated string that identifies related objects that will be returned by the query. Specifying a span value of "Orders" ensures that the Order objects related to any Customer object are returned by the query as well. All orders are automatically packed into the Orders property.”

为了提高性能和节省内存,ObjectSpaces在装载子对象集合的时候采用了Delay Loading的技术。也就是等到在代码中真正需要用到那个对象的时候才去从数据库中加载。
“To improve performance and memory use in parent/child relationships, ObjectSpaces provides a facility known as "delay loading". It works both for one-to-many and one-to-one relationships. The idea is that child objects are loaded in memory and on demand only at the time that they are requested.”

大概看了一下那个文章,可能因为只是first look的缘故,感觉举的例子中的数据结构还是比较简单,感觉功能还不是很强,不足以描述那些有结构复杂的(有嵌套的树形的结构)对象。不过微软应该不会让人失望的,只有等release出来之后才知道这个o/r mapping framework的庐山真面目:)

转载于:https://www.cnblogs.com/Laser_Lu/archive/2004/06/03/13128.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值