国产探花免费观看_亚洲丰满少妇自慰呻吟_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ā)表
主站蜘蛛池模板: 阿鲁科尔沁旗| 武川县| 怀宁县| 湟源县| 四子王旗| 浑源县| 进贤县| 开鲁县| 吉首市| 长岭县| 黄陵县| 阿坝| 健康| 桃园市| 容城县| 灯塔市| 泊头市| 砀山县| 石楼县| 临沭县| 和硕县| 吉水县| 疏勒县| 西华县| 永川市| 澄迈县| 买车| 聂荣县| 桂东县| 英吉沙县| 桦甸市| 禹州市| 小金县| 鄂州市| 牙克石市| 汉川市| 江油市| 望江县| 延庆县| 灌阳县| 行唐县|