Powered by Zoomin Software. For more details please contactZoomin

DataDirect Connect for ADO.NET Data Provider Help

Using Model First

  • Last Updated: April 16, 2026
  • 3 minute read
    • ADO.NET
    • Documentation

The following procedure uses the Oracle ADO.NET Entity Framework data provider, and assumes that you already have the database schema available.

  1. Create a new application, such as Windows Console, Windows Forms, or ASP.NET, in Visual Studio.

  2. Expand the project in Solution Explorer.

    New project, with the solution selected in Solution Explorer

  3. Right-click the project and select Add / New Item.

    Menus for adding an Entity Data Model to a project are shown

  4. Select ADO.NET EntityDataModel, and then click Add. The Entity Data Model Wizard is displayed.

    Designing the database mode. The Empty model option is selected.

  5. Select Empty Model, and then click Finish. An empty model is added to your application.

  6. Right-click the empty model and select Properties / DDL Generation Template. Click the drop-down menu and set the value to DataDirect SSDLToOracle.tt (VS).

    Selecting the DDL Generation Template in the Properties pane

  7. Design your model (refer to MSDN for a wide assortment of tutorials).

    Designing the database model

  8. When you are satisfied with the model design, right-click the model and select Generate database from model. The Generate Database wizard is displayed.

  9. On the Choose Your Data Connection window, do the following steps:
    a. Select or create a connection:
       * Select an existing connection from the drop-down list
       * Click New Connection to create a new connection.
    b. Choose whether to include sensitive information.
    c. Click Next. The DDL is generated.

  10. Click Finish. SQL is added to your application.

    Summary of settings in the Generate Database Wizard

  11. Copy the DDL and execute against the connection using any tool.

    Copying the DDL

After executing the DDL, the backend database is ready for use, with all of the database objects mapped to your model.

Completed database with the database objects mapped to your model

TitleResults for “How to create a CRG?”Also Available inAlert