国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > .NET > 正文

DAO RDO ADO ADO.NET

2024-07-21 02:08:00
字體:
供稿:網(wǎng)友

ado isn't automatically code-compatible with your existing data access applications. while ado encapsulates the functionality of dao and rdo, you must convert many of the language elements over to ado syntax. in some cases, this will mean only a simple conversion of some functions of your existing code. in other cases, it might be best to rewrite the application using ado's new features.

dao (data access objects) was the first object-oriented interface that exposed the microsoft jet database engine (used by microsoft access) and allowed visual basic developers to directly connect to access tables - as well as other databases - through odbc. dao is suited best for either single-system applications or for small, local deployments.

rdo (remote data objects) is an object-oriented data access interface to odbc combined with the easy-to-use style of dao, providing an interface that exposes virtually all of odbcs low-level power and flexibility. rdo is limited, though, in that it doesn't access jet or isam databases very well, and that it can access relational databases only through existing odbc drivers. however, rdo has proven to be the interface of choice for a large number of sql server, oracle, and other large relational database developers. rdo provides the objects, properties, and methods needed to access the more complex aspects of stored procedures and complex resultsets.

ado is the successor to dao/rdo. functionally ado 2.0 is most similar to rdo, and there's generally a similar mapping between the two models. ado "flattens" the object model used by dao and rdo, meaning that it contains fewer objects and more properties, methods (and arguments), and events. for example, ado has no equivalents to the rdoengine and rdoenvironment objects, which exposed the odbc driver manager and henv interfaces. nor can you currently create odbc data sources from ado, despite the fact that your interface might be through the odbc ole db service provider.

much of the functionality contained in the dao and rdo models was consolidated into single objects, making for a much simpler object model. because of this, however, you might initially find it difficult to find the appropriate ado object, collection, property, method, or event. unlike dao and rdo, although ado objects are hierarchical, they are also creatable outside the scope of the hierarchy.

it should be noted, however, that ado currently doesn't support all of dao's functionality. ado mostly includes rdo-style functionality to interact with ole db data sources, plus remoting and dhtml technology.

in general, it's probably too early in the evolution of ado to migrate most dao applications (except possibly ones using odbcdirect) to ado right now, since ado doesn't currently support data definition (ddl), users, groups, and so forth. if you use dao only for client-server applications and don't rely on the jet database engine or use ddl, however, then you can probably migrate to ado now. eventually, microsoft will provide an ado ddl component to aid in dao-to-ado migration and provide generic ddl support for ole db providers.
發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 合山市| 武平县| 惠来县| 新平| 石门县| 汾西县| 昌邑市| 红原县| 铜陵市| 南平市| 永寿县| 云浮市| 龙门县| 齐齐哈尔市| 琼结县| 库尔勒市| 鄂托克旗| 满洲里市| 清流县| 邳州市| 石棉县| 龙州县| 东丽区| 嘉祥县| 濮阳市| 麦盖提县| 南皮县| 碌曲县| 乌拉特中旗| 台北县| 松阳县| 舞阳县| 颍上县| 柘城县| 鄄城县| 四子王旗| 墨竹工卡县| 岐山县| 明星| 涡阳县| 濮阳县|