NetSuite Data Provider - Online Help
NetSuite Data Provider
Questions / Feedback?

Using EF 6

The Entity Framework is now being developed outside of the .NET Framework. This means several dependencies that were part of the .NET framework are now part of the Entity Framework. You can follow the procedure in this section to use Entity Framework 6 in your project.

Install Entity Framework 6

First, install and configure the Entity Framework 6 environment. Use the Package Manager Console in Visual Studio to install the latest version of Entity Framework. Run the the following command to download and install Entity Framework automatically:

Install-Package EntityFramework

Register the Entity Framework Provider

To register the Entity Framework provider, add the following provider entry in the "providers" section of your App.config or Web.config. This section should already exist if the Entity Framework installation was successful.

<configuration>
  ...
  <entityFramework>
    <providers>
      ...
      <provider invariantName="System.Data.RSSBus.NetSuite" type="System.Data.RSSBus.NetSuite.NetSuiteProviderServices, System.Data.RSSBus.NetSuite.Entities.EF6" />
    </providers>
  </entityFramework>
</configuration>
Next, add a reference to System.Data.RSSBus.NetSuite.Entities.EF6.dll, located in the lib -> 4.0 subfolder in the installation directory, and build the project to complete the setup for using Entity Framework 6.

Build the Project

It is important to build the project so that the referenced assemblies are copied locally to the build location. These assemblies are used by the Visual Studio Entity Framework model generation wizard.

Using Entity Framework

With the setup complete, you can either use the Entity Data Model Wizard described in Model-First Approach or use the code-first approach described in Code-First Approach.

 
 
Copyright (c) 2015 RSSBus, Inc. - All rights reserved.
Build 1.0.5578.0