What should I do with my own entity Framework dll inorder to use it with visual studio 2013?

80 views Asked by At

I have written Entity framework provider for my database. I have compiled and have got the required .dll. Now what should I do with this dll inorder to use it with visual studio 2013?

1

There are 1 answers

1
Carl Prothman On

You would need to register your custom provider DLL either in the application’s configuration file (app.config or web.config) or using code-based configuration.

<entityFramework>
    <providers>
      <provider invariantName="My.Invariant.Name" type="MyProvider.MyProviderServices, MyAssembly"  />
    </providers>
</entityFramework>

or

public class MyConfiguration : DbConfiguration
{
   public MyConfiguration()
   {
      SetProviderServices("My.New.Provider", new MyProviderServices());
   }
}

http://entityframework.codeplex.com/wikipage?title=Rebuilding%20EF%20providers%20for%20EF6