Jacob Reimers avatar Jacob Reimers committed a979f3f

Updated to use EntityFramework 4.3.1

Comments (0)

Files changed (3)

Linq2Rest.MvcSite/Linq2Rest.MvcSite.csproj

     <CodeContractsDisjunctiveRequires>False</CodeContractsDisjunctiveRequires>
   </PropertyGroup>
   <ItemGroup>
-    <Reference Include="EntityFramework">
+    <Reference Include="EntityFramework, Version=4.3.1.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
       <SpecificVersion>False</SpecificVersion>
-      <HintPath>..\packages\EntityFramework.4.2.0.0\lib\net40\EntityFramework.dll</HintPath>
+      <HintPath>..\packages\EntityFramework.4.3.1\lib\net40\EntityFramework.dll</HintPath>
     </Reference>
+    <Reference Include="System.Data.Entity" />
     <Reference Include="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
     <Reference Include="System.Web.WebPages" />
     <Reference Include="Microsoft.CSharp" />

Linq2Rest.MvcSite/Web.config

-<?xml version="1.0"?>
+<?xml version="1.0" encoding="utf-8"?>
 <!--
   For more information on how to configure your ASP.NET application, please visit
   http://go.microsoft.com/fwlink/?LinkId=152368
   -->
-
 <configuration>
+	<configSections>
+		<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
+		<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=4.3.1.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
+	</configSections>
 	<appSettings>
-		<add key="webpages:Version"
-			 value="1.0.0.0"/>
-		<add key="ClientValidationEnabled"
-			 value="true"/>
-		<add key="UnobtrusiveJavaScriptEnabled"
-			 value="true"/>
+		<add key="webpages:Version" value="1.0.0.0" />
+		<add key="ClientValidationEnabled" value="true" />
+		<add key="UnobtrusiveJavaScriptEnabled" value="true" />
 	</appSettings>
 	<connectionStrings>
-		<add name="SimpleContext"
-			 connectionString="Data Source=|DataDirectory|simple.sdf"
-			 providerName="System.Data.SqlServerCe.4.0"/>
+		<add name="SimpleContext" connectionString="Data Source=|DataDirectory|simple.sdf" providerName="System.Data.SqlServerCe.4.0" />
 	</connectionStrings>
 	<system.web>
-		<compilation debug="true"
-					 targetFramework="4.0">
+		<compilation debug="true" targetFramework="4.0">
 			<assemblies>
 				<add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
 				<add assembly="System.Web.Helpers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
 				<add assembly="System.Web.WebPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
 			</assemblies>
 		</compilation>
-
 		<authentication mode="Forms">
-			<forms loginUrl="~/Account/LogOn"
-				   timeout="2880" />
+			<forms loginUrl="~/Account/LogOn" timeout="2880" />
 		</authentication>
-
 		<pages>
 			<namespaces>
 				<add namespace="System.Web.Helpers" />
 				<add namespace="System.Web.Mvc.Ajax" />
 				<add namespace="System.Web.Mvc.Html" />
 				<add namespace="System.Web.Routing" />
-				<add namespace="System.Web.WebPages"/>
+				<add namespace="System.Web.WebPages" />
 			</namespaces>
 		</pages>
 	</system.web>
-
 	<system.webServer>
-		<validation validateIntegratedModeConfiguration="false"/>
-		<modules runAllManagedModulesForAllRequests="true"/>
+		<validation validateIntegratedModeConfiguration="false" />
+		<modules runAllManagedModulesForAllRequests="true" />
 	</system.webServer>
-
 	<runtime>
 		<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
 			<dependentAssembly>
-				<assemblyIdentity name="System.Web.Mvc"
-								  publicKeyToken="31bf3856ad364e35" />
-				<bindingRedirect oldVersion="1.0.0.0-2.0.0.0"
-								 newVersion="3.0.0.0" />
+				<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
+				<bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="3.0.0.0" />
 			</dependentAssembly>
 		</assemblyBinding>
 	</runtime>
-</configuration>
+	<entityFramework>
+		<defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework">
+			<parameters>
+				<parameter value="Data Source=(localdb)\v11.0; Integrated Security=True; MultipleActiveResultSets=True" />
+			</parameters>
+		</defaultConnectionFactory>
+	</entityFramework>
+</configuration>

Linq2Rest.MvcSite/packages.config

 <?xml version="1.0" encoding="utf-8"?>
 <packages>
-  <package id="EntityFramework" version="4.2.0.0" />
+  <package id="EntityFramework" version="4.3.1" targetFramework="net40" />
 </packages>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.