Entity Framework is an object-relational mapping framework that can be used to work with data as objects. While you can run the ADO.NET Entity Data Model wizard in Visual Studio to handle generating the Entity Model, this approach, the model-first approach, can put you at a disadvantage if there are changes in your data source or if you want more control over how the entities operate. In this article you will complete the code-first approach to accessing Redshift data using the CData ADO.NET Provider.

  • Open Visual Studio and create a new Windows Form Application. This article uses a C# project with .NET 4.5.
  • Run the command ‘Install-Package EntityFramework’ in the Package Manger Console in Visual Studio to install the latest release of Entity Framework.
  • Modify the App.config file in the project to add a reference to the Redshift Entity Framework 6 assembly and the connection string.To connect to Redshift, set the following:

    Entity Framework is an object-relational mapping framework that can be used to work with data as objects. While you can run the ADO.NET Entity Data Model wizard in Visual Studio to handle generating the Entity Model, this approach, the model-first approach, can put you at a disadvantage if there are changes in your data source or if you want more control over how the entities operate. In this article you will complete the code-first approach to accessing Redshift data using the CData ADO.NET Provider.
    Open Visual Studio and create a new Windows Form Application. This article uses a C# project with .NET 4.5.
    Run the command ‘Install-Package EntityFramework’ in the Package Manger Console in Visual Studio to install the latest release of Entity Framework.
    Modify the App.config file in the project to add a reference to the Redshift Entity Framework 6 assembly and the connection string.To connect to Redshift, set the following: […]