Creating Adaptive Server Entity Data Model Using Entity Framework

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
  1. Create a new application project.
  2. In the Solution Explorer window, right-click the project and select Add > New Item.
  3. Select Data as the category and ADO.NET Entity Data Model as the template.
  4. Enter a name for the entity data model and click Add.

    The Data Model wizard launches.

  5. Choose Generate from database. Click Next.
  6. Select an existing Adaptive Server connection or click New Connection. If you chose New Connection, enter the name of the connection settings. Click Next.
  7. 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.