Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Use an overload of the ObjectContext.SaveChanges method that does not require the SaveOptions enumerated type when not compiled against the .NET Framework 4.0. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | bug-ccfa69fc32 |
Files: | files | file ages | folders |
SHA1: |
34ca66ddcff987d5d23ae1bd8c6c9899 |
User & Date: | mistachkin 2011-09-11 17:43:53.228 |
Context
2011-09-12
| ||
19:34 | Streamline the test case for ticket [ccfa69fc32] and make it more complete by not relying on sort ordering of the IDs. Closed-Leaf check-in: bba06f3a9f user: mistachkin tags: bug-ccfa69fc32 | |
2011-09-11
| ||
17:43 | Use an overload of the ObjectContext.SaveChanges method that does not require the SaveOptions enumerated type when not compiled against the .NET Framework 4.0. check-in: 34ca66ddcf user: mistachkin tags: bug-ccfa69fc32 | |
15:45 | Fix test cleanup to remove the 'add' variable. check-in: 538c5ca711 user: mistachkin tags: bug-ccfa69fc32 | |
Changes
Changes to testlinq/Program.cs.
︙ | ︙ | |||
269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 | territories.Regions = db.Regions.First(); db.AddObject("Territories", territories); } try { db.SaveChanges(SaveOptions.None); } catch (Exception e) { Console.WriteLine(e); } finally { | > > > > | 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 | territories.Regions = db.Regions.First(); db.AddObject("Territories", territories); } try { #if NET_20 db.SaveChanges(false); #else db.SaveChanges(SaveOptions.None); #endif } catch (Exception e) { Console.WriteLine(e); } finally { |
︙ | ︙ |
Changes to testlinq/testlinq.2008.csproj.
︙ | ︙ | |||
68 69 70 71 72 73 74 75 76 77 78 79 80 81 | <Generator>EntityModelCodeGenerator</Generator> <LastGenOutput>NorthwindModel2008.Designer.cs</LastGenOutput> </EntityDeploy> </ItemGroup> <ItemGroup> <Service Include="{C8F2D6AC-F9F4-4E40-A399-22F9A9A5CBD2}" /> </ItemGroup> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <!-- To modify your build process, add your task inside one of the targets below and uncomment it. Other similar extension points exist, see Microsoft.Common.targets. <Target Name="BeforeBuild"> </Target> <Target Name="AfterBuild"> </Target> | > | 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 | <Generator>EntityModelCodeGenerator</Generator> <LastGenOutput>NorthwindModel2008.Designer.cs</LastGenOutput> </EntityDeploy> </ItemGroup> <ItemGroup> <Service Include="{C8F2D6AC-F9F4-4E40-A399-22F9A9A5CBD2}" /> </ItemGroup> <Import Project="$(SQLiteNetDir)\System.Data.SQLite\System.Data.SQLite.Properties.targets" /> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <!-- To modify your build process, add your task inside one of the targets below and uncomment it. Other similar extension points exist, see Microsoft.Common.targets. <Target Name="BeforeBuild"> </Target> <Target Name="AfterBuild"> </Target> |
︙ | ︙ |
Changes to testlinq/testlinq.2010.csproj.
︙ | ︙ | |||
81 82 83 84 85 86 87 88 89 90 91 92 93 94 | <Generator>EntityModelCodeGenerator</Generator> <LastGenOutput>NorthwindModel2010.Designer.cs</LastGenOutput> </EntityDeploy> </ItemGroup> <ItemGroup> <Service Include="{C8F2D6AC-F9F4-4E40-A399-22F9A9A5CBD2}" /> </ItemGroup> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <!-- To modify your build process, add your task inside one of the targets below and uncomment it. Other similar extension points exist, see Microsoft.Common.targets. <Target Name="BeforeBuild"> </Target> <Target Name="AfterBuild"> </Target> | > | 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | <Generator>EntityModelCodeGenerator</Generator> <LastGenOutput>NorthwindModel2010.Designer.cs</LastGenOutput> </EntityDeploy> </ItemGroup> <ItemGroup> <Service Include="{C8F2D6AC-F9F4-4E40-A399-22F9A9A5CBD2}" /> </ItemGroup> <Import Project="$(SQLiteNetDir)\System.Data.SQLite\System.Data.SQLite.Properties.targets" /> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <!-- To modify your build process, add your task inside one of the targets below and uncomment it. Other similar extension points exist, see Microsoft.Common.targets. <Target Name="BeforeBuild"> </Target> <Target Name="AfterBuild"> </Target> |
︙ | ︙ |