简体   繁体   English

VB6迁移到.NET

[英]VB6 Migrating to .NET

I am migrating an application from VB6 to C#, which are used Recordset. 我正在将应用程序从VB6迁移到使用Recordset的C#。 My question is: which object is the "equivalent" to VB6 recordset in C# or at least the one to use? 我的问题是:哪个对象与C#中的VB6记录集“等效”,或者至少是一个要使用的对象?

I'd say that the closest thing you'd find would be a DataTable which is part of a DataSet . 我想说的是,您找到的最接近的东西是DataTable ,它是DataSet的一部分。

Of course, with the variety of fantastic ORMs out there these days (Dapper, Simple, ServiceStack.OrmLite, EF, etc), perhaps you can use this as an opportunity to upgrade your methodology practices at the same time, or even just use a cleaner IDataReader approach. 当然,随着近来各种出色的ORM(Dapper,Simple,ServiceStack.OrmLite,EF等)的出现,也许您可​​以以此为契机同时升级您的方法实践,甚至只是使用更清洁的IDataReader方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM