Skip to content

Commit 0a187f6

Browse files
hazziktxavier
authored andcommitted
Merge branch 'release/0.23.0' into develop
2 parents 6fe39a6 + 653a0d7 commit 0a187f6

File tree

14 files changed

+106
-11
lines changed

14 files changed

+106
-11
lines changed

src/DelegateDecompiler.EntityFramework.Tests/App.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
</providers>
1616
</entityFramework>
1717
<connectionStrings>
18-
<add name="DelegateDecompilerEfTestDb" connectionString="Data Source=.\sqlexpress;Initial Catalog=DelegateDecompilerEfTestDb;MultipleActiveResultSets=True;Trusted_Connection=True" providerName="System.Data.SqlClient" />
18+
<add name="DelegateDecompilerEfTestDb" connectionString="Data Source=.;Initial Catalog=DelegateDecompilerEfTestDb;MultipleActiveResultSets=True;Trusted_Connection=True" providerName="System.Data.SqlClient" />
1919
</connectionStrings>
2020
</configuration>

src/DelegateDecompiler.EntityFramework.Tests/DelegateDecompiler.EntityFramework.Tests.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494
<Compile Include="TestGroup15Aggregation\Test02Sum.cs" />
9595
<Compile Include="TestGroup10OrderTake\Test02SkipTake.cs" />
9696
<Compile Include="TestGroup10OrderTake\Test01OrderBy.cs" />
97+
<Compile Include="TestGroup20Relationship\Test01Include.cs" />
9798
<Compile Include="TestGroup50Types\Test01Strings.cs" />
9899
<Compile Include="TestGroup50Types\Test05DateTime.cs" />
99100
<Compile Include="TestGroup99SaveResults\Test99SaveResults.cs" />
@@ -123,6 +124,9 @@
123124
<Name>DelegateDecompiler</Name>
124125
</ProjectReference>
125126
</ItemGroup>
127+
<ItemGroup>
128+
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
129+
</ItemGroup>
126130
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
127131
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
128132
Other similar extension points exist, see Microsoft.Common.targets.

src/DelegateDecompiler.EntityFramework.Tests/GeneratedDocumentation/DetailedListOfSupportedCommands.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Detail of supported commands
22
============
3-
## Documentation produced for DelegateDecompiler, version 0.22.0 on Tuesday, 10 January 2017 21:57
3+
## Documentation produced for DelegateDecompiler, version 0.23.0 on Tuesday, 14 March 2017 10:50
44

55
This file documents what linq commands **DelegateDecompiler** supports when
66
working with [Entity Framework v6.1](http://msdn.microsoft.com/en-us/data/aa937723) (EF).

src/DelegateDecompiler.EntityFramework.Tests/GeneratedDocumentation/DetailedListOfSupportedCommandsWithSQL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Detail With Sql of supported commands
22
============
3-
## Documentation produced for DelegateDecompiler, version 0.22.0 on Tuesday, 10 January 2017 21:57
3+
## Documentation produced for DelegateDecompiler, version 0.23.0 on Tuesday, 14 March 2017 10:50
44

55
This file documents what linq commands **DelegateDecompiler** supports when
66
working with [Entity Framework v6.1](http://msdn.microsoft.com/en-us/data/aa937723) (EF).

src/DelegateDecompiler.EntityFramework.Tests/GeneratedDocumentation/SummaryOfSupportedCommands.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Summary of supported commands
22
============
3-
## Documentation produced for DelegateDecompiler, version 0.22.0 on Tuesday, 10 January 2017 21:57
3+
## Documentation produced for DelegateDecompiler, version 0.23.0 on Tuesday, 14 March 2017 10:50
44

55
This file documents what linq commands **DelegateDecompiler** supports when
66
working with [Entity Framework v6.1](http://msdn.microsoft.com/en-us/data/aa937723) (EF).

src/DelegateDecompiler.EntityFramework.Tests/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
3535
[assembly: AssemblyVersion("1.0.0.0")]
36-
[assembly: AssemblyFileVersion("0.22.0")]
36+
[assembly: AssemblyFileVersion("0.23.0")]
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// Contributed by @JonPSmith (GitHub) www.thereformedprogrammer.com
2+
3+
using System.Linq;
4+
using DelegateDecompiler.EntityFramework.Tests.Helpers;
5+
using NUnit.Framework;
6+
using DelegateDecompiler.EntityFramework.Tests.EfItems;
7+
using System.Data.Entity;
8+
using System.Collections.Generic;
9+
10+
namespace DelegateDecompiler.EntityFramework.Tests.TestGroup05BasicFeatures
11+
{
12+
class Test01Include
13+
{
14+
private ClassEnvironment classEnv;
15+
16+
[OneTimeSetUp]
17+
public void SetUpFixture()
18+
{
19+
classEnv = new ClassEnvironment();
20+
}
21+
22+
[Computed]
23+
private static bool ComputedSample() { return true; }
24+
25+
[Test]
26+
public void TestInclude()
27+
{
28+
using (var db = new EfTestDbContext())
29+
using (var env = new MethodEnvironment(classEnv))
30+
{
31+
//SETUP
32+
var linq = db.EfParents.Where(p => true).Include(p => p.Children).ToList();
33+
34+
//ATTEMPT
35+
env.AboutToUseDelegateDecompiler();
36+
var dd = env.Db.EfParents.Where(p => ComputedSample()).Include(p => p.Children).Decompile().ToList();
37+
38+
//VERIFY
39+
env.CompareAndLogList(linq, dd);
40+
}
41+
}
42+
43+
}
44+
}

src/DelegateDecompiler.EntityFramework/DelegateDecompiler.EntityFramework.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package >
33
<metadata>
44
<id>$id$</id>
5-
<version>0.22.0</version>
5+
<version>0.23.0</version>
66
<title>$title$</title>
77
<authors>Alexander Zaytsev</authors>
88
<owners>$author</owners>
@@ -17,7 +17,7 @@
1717
<copyright>Copyright (c) Alexander Zaytsev 2014 - 2017</copyright>
1818
<tags>LINQ computed-properties computedproperties decompiler decompilation computed properties expressions expression-tree IL</tags>
1919
<dependencies>
20-
<dependency id="DelegateDecompiler" version="0.22.0" />
20+
<dependency id="DelegateDecompiler" version="0.23.0" />
2121
</dependencies>
2222
</metadata>
2323
</package>

src/DelegateDecompiler.EntityFramework/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
3535
[assembly: AssemblyVersion("1.0.0.0")]
36-
[assembly: AssemblyFileVersion("0.22.0")]
36+
[assembly: AssemblyFileVersion("0.23.0")]

src/DelegateDecompiler.Tests.VB/DelegateDecompiler.Tests.VB.vbproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@
121121
<Name>DelegateDecompiler</Name>
122122
</ProjectReference>
123123
</ItemGroup>
124+
<ItemGroup>
125+
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
126+
</ItemGroup>
124127
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
125128
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
126129
Other similar extension points exist, see Microsoft.Common.targets.

0 commit comments

Comments
 (0)