Create data access classes using the Microsoft Entity Framework.
Prerequisites
Verify that you have a valid connection to an active Adaptive Server to perform this
task.
Task- Create a new application project.
- In the Solution Explorer window, right-click the project and select .
- Select Data as the category and ADO.NET Entity Data
Model as the template.
- Enter a name for the entity data model and click Add.
The Data Model wizard launches.
- Choose Generate from database. Click Next.
- Select an existing Adaptive Server connection or click New Connection.
If you chose New Connection, enter the name of the connection settings. Click
Next.
- Select an Adaptive Server object. Click Finish.
Use the Entity Designer to modify the model. Data access classes are automatically
generated by the Entity Framework when you save the model.