Page 1 of 1

ef5 & mvc4 sample

Posted: Wed 18 Jul 2012 15:51
by plamb
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.

Re: ef5 & mvc4 sample

Posted: Mon 23 Jul 2012 14:32
by Shalex
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.