Skip to content

Commit 103ac5e

Browse files
committed
Merge branch 'master' into criteriaFetchCache
2 parents 55f4d08 + c4b806c commit 103ac5e

File tree

278 files changed

+3921
-3379
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

278 files changed

+3921
-3379
lines changed

Tools/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<package id="NUnit.Extension.NUnitV2ResultWriter" version="3.6.0" targetFramework="net461" />
88
<package id="NUnit.Extension.TeamCityEventListener" version="1.0.2" targetFramework="net461" />
99
<package id="NUnit.Extension.VSProjectLoader" version="3.6.0" targetFramework="net461" />
10-
<package id="CSharpAsyncGenerator.CommandLine" version="0.13.2" targetFramework="net461" />
10+
<package id="CSharpAsyncGenerator.CommandLine" version="0.14.0" targetFramework="net461" />
1111
<package id="vswhere" version="2.1.4" targetFramework="net461" />
1212
<package id="gitreleasemanager" version="0.7.0" targetFramework="net461" />
1313
</packages>

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 5.2.3.{build}
1+
version: 5.2.5.{build}
22
image: Visual Studio 2017
33
environment:
44
matrix:

build-common/NHibernate.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<PropertyGroup>
66
<VersionMajor Condition="'$(VersionMajor)' == ''">5</VersionMajor>
77
<VersionMinor Condition="'$(VersionMinor)' == ''">2</VersionMinor>
8-
<VersionPatch Condition="'$(VersionPatch)' == ''">3</VersionPatch>
8+
<VersionPatch Condition="'$(VersionPatch)' == ''">5</VersionPatch>
99
<VersionSuffix Condition="'$(VersionSuffix)' == ''"></VersionSuffix>
1010

1111
<VersionPrefix>$(VersionMajor).$(VersionMinor).$(VersionPatch)</VersionPrefix>

build-common/common.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
<!-- This is used only for build folder -->
1515
<!-- TODO: Either remove or refactor to use NHibernate.props -->
16-
<property name="project.version" value="5.2.3" overwrite="false" />
17-
<property name="project.version.numeric" value="5.2.3" overwrite="false" />
16+
<property name="project.version" value="5.2.5" overwrite="false" />
17+
<property name="project.version.numeric" value="5.2.5" overwrite="false" />
1818

1919
<!-- properties used to connect to database for testing -->
2020
<include buildfile="nhibernate-properties.xml" />

releasenotes.txt

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,47 @@
1+
Build 5.2.5
2+
=============================
3+
4+
Release notes - NHibernate - Version 5.2.5
5+
6+
5 issues were resolved in this release.
7+
8+
** Bug
9+
10+
* #2075 Missing cast when comparing a guid and string columns in SAP SQL Anywhere
11+
* #2046 Fix nullable Guid ToString is not translated correctly on some dialects
12+
* #2043 System.Reflection.TargetException when an interface is used as class mapping proxy definition
13+
* #2040 Incorrect SQL when comparing a guid and string column in Sql Server
14+
15+
** Task
16+
17+
* #2086 Release 5.2.5
18+
19+
Build 5.2.4
20+
=============================
21+
22+
Release notes - NHibernate - Version 5.2.4
23+
24+
3 issues were resolved in this release. The dialect change has the side effect of
25+
re-enabling a hack used by NHibernate.Spatial, allowing Spatial users to upgrade
26+
to NHibernate 5.2.x. See NHibernate.Spatial#104.
27+
28+
##### Possible Breaking Changes #####
29+
* Using DML on an entity collection was applying the changes without
30+
filtering according to the entity. It will now throw a
31+
NotSupportedException.
32+
33+
** Bug
34+
35+
* #2020 Throw for DML on filter
36+
* #2011 Use a statically resolved dialect when building the session factory
37+
38+
** Task
39+
40+
* #2030 Release 5.2.4
41+
42+
As part of releasing 5.2.4, a missing 5.2.0 possible breaking change has been added about
43+
property-ref on null values. See 5.2.0 possible breaking changes.
44+
145
Build 5.2.3
246
=============================
347

@@ -74,6 +118,9 @@ Release notes - NHibernate - Version 5.2.0
74118
IDictionary is no more supported.
75119
* Querying a dynamic entity as a Hashtable instead of an IDictionary is no more
76120
supported.
121+
* A collection mapped with a `property-ref` will no more support being accessed
122+
when the referenced property is null. It will throw. Previously, the collection
123+
was not throwing but was always loaded empty.
77124
* With PostgreSQL, a HQL query using the bitwise xor operator "^" or "bxor"
78125
was exponentiating the arguments instead. It will now correctly apply the xor
79126
operator. (# operator in PostgreSQL SQL.)
@@ -295,6 +342,24 @@ Release notes - NHibernate - Version 5.2.0
295342
As part of releasing 5.2.0, a misnamed setting in 5.0.0 release notes has been fixed:
296343
transaction.use_connection_on_system_events correct name is transaction.use_connection_on_system_prepare
297344

345+
Build 5.1.5
346+
=============================
347+
348+
Release notes - NHibernate - Version 5.1.5
349+
350+
##### Possible Breaking Changes #####
351+
* Using DML on an entity collection was applying the changes without
352+
filtering according to the entity. It will now throw a
353+
NotSupportedException.
354+
355+
** Bug
356+
357+
* #2043 System.Reflection.TargetException when an interface is used as class mapping proxy definition
358+
* #2020 Throw for DML on filter
359+
360+
** Task
361+
* #2074 Release 5.1.5
362+
298363
Build 5.1.4
299364
=============================
300365

@@ -540,6 +605,24 @@ Release notes - NHibernate - Version 5.1.0
540605
As part of releasing 5.1.0, a missing 5.0.0 possible breaking change has been added about inequality semantic in LINQ
541606
queries. See 5.0.0 possible breaking changes.
542607

608+
Build 5.0.7
609+
=============================
610+
611+
Release notes - NHibernate - Version 5.0.7
612+
613+
##### Possible Breaking Changes #####
614+
* Using DML on an entity collection was applying the changes without
615+
filtering according to the entity. It will now throw a
616+
NotSupportedException.
617+
618+
** Bug
619+
620+
* #2043 System.Reflection.TargetException when an interface is used as class mapping proxy definition
621+
* #2020 Throw for DML on filter
622+
623+
** Task
624+
* #2073 Release 5.0.7
625+
543626
Build 5.0.6
544627
=============================
545628

src/AsyncGenerator.yml

Lines changed: 5 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -181,30 +181,10 @@
181181
methodConversion:
182182
- conversion: Copy
183183
name: AfterTransactionCompletionProcess_EvictsFromCache
184-
- conversion: Copy
185-
hasAttributeName: OneTimeSetUpAttribute
186-
- conversion: Copy
187-
hasAttributeName: OneTimeTearDownAttribute
188-
- conversion: Copy
189-
hasAttributeName: SetUpAttribute
190-
- conversion: Copy
191-
hasAttributeName: TearDownAttribute
192-
- conversion: Smart
193-
hasAttributeName: TestAttribute
194-
- conversion: Smart
195-
hasAttributeName: TheoryAttribute
196184
asyncExtensionMethods:
197185
projectFiles:
198186
- fileName: LinqExtensionMethods.cs
199187
projectName: NHibernate
200-
preserveReturnType:
201-
- hasAttributeName: TestAttribute
202-
- hasAttributeName: TheoryAttribute
203-
alwaysAwait:
204-
- hasAttributeName: TestAttribute
205-
- hasAttributeName: TheoryAttribute
206-
- hasAttributeName: SetUpAttribute
207-
- hasAttributeName: TearDownAttribute
208188
typeConversion:
209189
- conversion: Ignore
210190
name: ObjectAssert
@@ -214,32 +194,24 @@
214194
name: MultiThreadRunner
215195
- conversion: Ignore
216196
name: PeVerifier
217-
- conversion: Ignore
218-
hasAttributeName: IgnoreAttribute
219-
- conversion: NewType
220-
hasAttributeName: TestFixtureAttribute
221-
- conversion: NewType
222-
anyBaseTypeRule: HasTestFixtureAttribute
223197
- conversion: Ignore
224198
rule: IsTestCase
225199
- conversion: Ignore
226200
anyBaseTypeRule: IsTestCase
227-
ignoreSearchForMethodReferences:
228-
- hasAttributeName: TheoryAttribute
229-
- hasAttributeName: TestAttribute
230201
ignoreDocuments:
231202
- filePathEndsWith: Linq/MathTests.cs
232203
- filePathEndsWith: Linq/ExpressionSessionLeakTest.cs
233204
- filePathEndsWith: Linq/NorthwindDbCreator.cs
234205
cancellationTokens:
235-
withoutCancellationToken:
236-
- hasAttributeName: TestAttribute
237-
- hasAttributeName: TheoryAttribute
206+
enabled: true
238207
scanMethodBody: true
239208
scanForMissingAsyncMembers:
240209
- all: true
241210
registerPlugin:
242-
- type: AsyncGenerator.Core.Plugins.NUnitAsyncCounterpartsFinder
211+
- type: AsyncGenerator.Core.Plugins.NUnitPlugin
212+
parameters:
213+
- name: createNewTypes
214+
value: true
243215
assemblyName: AsyncGenerator.Core
244216
- type: AsyncGenerator.Core.Plugins.TransactionScopeAsyncFlowAdder
245217
assemblyName: AsyncGenerator.Core
@@ -302,6 +274,3 @@ typeRules:
302274
- filters:
303275
- name: TestCase
304276
name: IsTestCase
305-
- filters:
306-
- hasAttributeName: TestFixtureAttribute
307-
name: HasTestFixtureAttribute

src/NHibernate.Test/Async/Ado/BatcherFixture.cs

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -102,44 +102,7 @@ public async Task OneRoundTripUpdateAsync()
102102
await (CleanupAsync());
103103
}
104104

105-
#if NETFX
106-
[Test, Ignore("Not fixed yet.")]
107-
[Description("SqlClient: The batcher should run all different INSERT queries in only one roundtrip.")]
108-
public async Task SqlClientOneRoundTripForUpdateAndInsertAsync()
109-
{
110-
if (Sfi.Settings.BatcherFactory is SqlClientBatchingBatcherFactory == false)
111-
Assert.Ignore("This test is for SqlClientBatchingBatcher only");
112-
113-
await (FillDbAsync());
114-
115-
using (var sqlLog = new SqlLogSpy())
116-
using (ISession s = Sfi.OpenSession())
117-
using (ITransaction tx = s.BeginTransaction())
118-
{
119-
await (s.SaveAsync(new VerySimple
120-
{
121-
Name = "test441",
122-
Weight = 894
123-
}));
124-
125-
await (s.SaveAsync(new AlmostSimple
126-
{
127-
Name = "test441",
128-
Weight = 894
129-
}));
130-
131-
await (tx.CommitAsync());
132-
133-
var log = sqlLog.GetWholeLog();
134-
//log should only contain NHibernate.SQL once, because that means
135-
//that we ony generated a single batch (NHibernate.SQL log will output
136-
//once per batch)
137-
Assert.AreEqual(0, log.IndexOf("NHibernate.SQL"), "log should start with NHibernate.SQL");
138-
Assert.AreEqual(-1, log.IndexOf("NHibernate.SQL", "NHibernate.SQL".Length), "NHibernate.SQL should only appear once in the log");
139-
}
140-
141-
await (CleanupAsync());
142-
}
105+
#if NETFX
143106

144107
[Test]
145108
[Description("SqlClient: The batcher log output should be formatted")]

0 commit comments

Comments
 (0)