Ispirer Website
Ispirer Toolkit Overview
Free Trial
To migrate Progress 4GL code to C# with Microsoft SQL Server usage in command line mode you can use Ispirer nGLFly tool or SQLWays.exe command line tool.
If you run the Ispirer nGLFly or SQLWays.exe tool for the first time, you need to register the tool using the license information that you have. You can register the toolkit using the SQLWays Wizard tool. Here you can find step by step guide on how to run and register the tool. Please follow the steps described in the article:
If you have Progress database, first of all you should convert this database to MS SQL Server one. Before you start Progress 4GL to C# conversion, you should create edmx model to get correct queries in C# results. For this purpose, you can use database file *.mdf or existing connection to database.
To create EDMX file you should:
After that you should go to the application folder in File Explorer, find *.edmx file and copy it to the folder with conversion sources. After that you should create a “db” folder, rename edmx file to DataClasses.edmx and put this file into “db” folder.
To use EDMX during conversion you should click “Advanced” button on “Target Options” page and set these options: - “DATA model used” to EDM - “ENTITY model name” to name that you use during saving connection settings to App.config. (f.e. DemoEntities) - “ENTITY model namespace” to value of Schema Namespace in edmx file in ConceptualModels section. (f.e. demoModel)
Other target options should be set as they are set in the screenshot below.
After you will get the results, you can add them to the project where you've been created edmx file and, if you do everything correct, you will have results that are connected to edmx model and database.
After you registered the toolkit you need to run the following command in the Command Prompt:
c:\Program Files\Ispirer\MnMTK10\SQLWays.exe" /D=FIXED /SOURCE= Progress 4GL /TARGET=CS /F=c:\example\*.* /DIR=ResultCS\ /INI=sqlways.ini
Description of the command line options:
To convert your Progress 4GL source code, please specify the following options in the sqlways.ini file:
[COMMON] DSN=c:\Root\ SOURCE=Progress 4GL TARGET=CS TARGET_DB=Microsoft SQL Server [CS] ENTITY_MODEL_NAME=DemoEntities ENTITY_MODEL_NAMESPACE=demoModel DATA_MODEL=EDM
If you face any issues or have any questions on how to migrate Progress 4GL code to Microsoft SQL Server in command line, please contact our support team: support@ispirer.com