有关从VB迁移到.NET的建议 [英] Suggestions related to migration from VB to .NET

查看:166
本文介绍了有关从VB迁移到.NET的建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,

有一个用VB开发的Windows应用程序.
它正在使用数据库DB2.
应用程序通过"MainFrame程序"与DB2通信.
这里的接口用于将VB调用转换为"MainFrame调用".


前端:
Windows在VB 5.0中开发<​​br/>
后端:
DB2

MainFrame:
MainFrame程序中添加了许多业务逻辑.这将与DB2通信.也有很多批次.

第一次,我在生活中看到了这种架构.
无论您的学生是否听说过这种体系结构....
如果是,我们如何将该项目迁移到其他项目?

我正在阅读我们可以直接从.NET应用程序与DB2连接的信息.
我们可以在DB2中编写过程并从.NET代码中调用该过程吗?

请建议大家...

Hi Friends,

There is a windows application developed in VB.
It is using the data base DB2.
Application is communicating with DB2 by means "MainFrame Programs".
Here an interface is used to convert the VB calls to "MainFrame Calls".


Frontend:
Windows developed in VB 5.0

BackEnd:
DB2

MainFrame:
Lot of Business logic is added in MainFrame programs. This will communicate with DB2. Lots of batches are also present.

First time, I am seeing this architecture in my life.
Whether you pupils heard of this architecture....
If yes, How can we migrate this project to some other ?

I am reading the we can directly connect with DB2 from .NET application.
Can we write procedure in DB2 and call the same from our .NET code ?

Please suggest guys...

推荐答案

我为您搜索了从.net连接到db2",这是第一个结果

从Microsoft .NET连接到DB2 [
I googled "connect to db2 from .net" for you and this was the first result

Connect to DB2 from Microsoft .NET[^]


这是一个非常常见的体系结构,通常用于为遗留大型机绿屏"应用程序提供更现代"的前端,并具有改进的验证,外观等.

如果VB5程序仅在运行DB2查询,则请参阅解决方案1.

但是,您已经提到
This is quite a common architecture, often used to give a more "modern" frontend to legacy mainframe "green-screen" applications, with improved validation, appearance etc.

If the VB5 programs are just running DB2 queries then see solution 1.

However, you have mentioned
报价:

在MainFrame程序中添加了很多业务逻辑.这将与DB2通信.也有很多批次.

Lot of Business logic is added in MainFrame programs. This will communicate with DB2. Lots of batches are also present.

在这种情况下,您可能需要启动这些程序的运行(从VB),而不仅仅是连接到DB2(或者您可能需要两者).

现在,这取决于您(当前)如何连接至大型机,当前正在使用或打算使用哪种仿真器或其他通信协议.这还取决于它是哪种大型机,是否使用IMS,CICS等等等.这是

In which case you may need to instigate the running of those programs (from VB) rather than just connecting to DB2 (or you may need both).

This now depends on how you are (currently) connecting to the mainframe, which emulator or other communication protocol you are currently using or intend to use. That will also depend on what kind of mainframe it is, whether you are using IMS, CICS, etc etc etc. Here is a starter[^] search

In the past I''ve used direct communication, emulators and screen-scraping.

If you are intending to replace the mainframe business logic (in which instance I would ask "why?") then be sure to put in place a test region ... first. And make sure that you have production-strength data in it.


这篇关于有关从VB迁移到.NET的建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆