ef5 & mvc4 sample

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
plamb
Posts: 1
Joined: Wed 18 Jul 2012 15:44

ef5 & mvc4 sample

Post by plamb » Wed 18 Jul 2012 15:51

I'd love to see you add a ef5 and mvc4 sample app, postgres preferably, to the list. I can't find references to what to replace the following from the default app with.

Code: Select all

<entityFramework>
    <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
        <parameters>
            <parameter value="v11.0" />
        </parameters>
    </defaultConnectionFactory>
</entityFramework>
And just updating the connection string doesn't seem to work quite right either.

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: ef5 & mvc4 sample

Post by Shalex » Mon 23 Jul 2012 14:32

plamb wrote:I'd love to see you add a ef5 and mvc4 sample app, postgres preferably, to the list.
Thank you for your suggestion.
plamb wrote:I can't find references to what to replace the following from the default app with.
defaultConnectionFactory should not be changed in case of PostgreSQL as well.
plamb wrote:And just updating the connection string doesn't seem to work quite right either.
If connection string is set via application config file for using it in the default constructor of DbContext ( new MyContext() ), the connection string for Devart.Data.PostgreSql should be set in application config file with the name of user's context (MyContext).

Please refer to http://blogs.devart.com/dotconnect/enti ... qlite.html.

Post Reply