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.
-
Create a new application, such as Windows Console, Windows Forms, or ASP.NET, in Visual Studio.
-
Expand the project in Solution Explorer.

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

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

-
Select Empty Model, and then click Finish. An empty model is added to your application.
-
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).

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

-
When you are satisfied with the model design, right-click the model and select Generate database from model. The Generate Database wizard is displayed.
-
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. -
Click Finish. SQL is added to your application.

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

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