about connectstring

Jun 26, 2012 at 9:06 AM

<connectionStrings>
    <add name="pianoEntities" connectionString="metadata=res://*/PianoManager.csdl|res://*/PianoManager.ssdl|res://*/PianoManager.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=localhost;Initial Catalog=piano;User ID=sa;Password=cocoisxbs;MultipleActiveResultSets=True&quot;" providerName="System.Data.EntityClient" />
  </connectionStrings>

  <appSettings>
    <add key="EntityFrameworkGenericRepository_ConnectionString" value="pianoEntities"/>
  </appSettings>

is it ok?

or another value?

Jun 26, 2012 at 9:19 AM

when I test it,the ctx connect string is right but ServerVersion throw exception:

ServerVersion = “(repo.ctx.Database.Connection).ServerVersion” throw “System.InvalidOperationException”

how can i do?

thanks!

Jun 26, 2012 at 9:40 AM

if i use the original dll it is work well

but if i build the source it work not well

Coordinator
Jun 26, 2012 at 3:21 PM

We just put a new download out 1.0.3 - check that out and see if you are still having an issue.  If it works when precompiled, but not from source, perhaps there is an environmental issue during build?  Also - included in the download is EntityFramework.dll v4.2 - are you using this or a greater version dll in your application?

Jun 27, 2012 at 1:24 AM

I use ef.dll v4.1.now i try v4.2