Skip to content

Commit 4b5f71d

Browse files
committed
Merge remote-tracking branch 'maca88/ReduceSumCast' into GH2054
# Conflicts: # src/NHibernate.Test/Async/Linq/SelectionTests.cs # src/NHibernate.Test/Linq/SelectionTests.cs # src/NHibernate/Dialect/SQLiteDialect.cs # src/NHibernate/Util/ExpressionsHelper.cs
2 parents 648c82a + efa2919 commit 4b5f71d

File tree

91 files changed

+4885
-581
lines changed

Some content is hidden

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

91 files changed

+4885
-581
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
dist: trusty
12
language: csharp
23
mono: latest
34
dotnet: 2.1.300

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 5.2.5.{build}
1+
version: 5.2.6.{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)' == ''">5</VersionPatch>
8+
<VersionPatch Condition="'$(VersionPatch)' == ''">6</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.5" overwrite="false" />
17-
<property name="project.version.numeric" value="5.2.5" overwrite="false" />
16+
<property name="project.version" value="5.2.6" overwrite="false" />
17+
<property name="project.version.numeric" value="5.2.6" overwrite="false" />
1818

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

doc/reference/modules/configuration.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,6 +1100,20 @@ in the parameter binding.</programlisting>
11001100
</para>
11011101
</entry>
11021102
</row>
1103+
<row>
1104+
<entry>
1105+
<literal>sqlite.binaryguid</literal>
1106+
</entry>
1107+
<entry>
1108+
SQLite can store GUIDs in binary or text form, controlled by the BinaryGuid
1109+
connection string parameter (default is 'true'). The BinaryGuid setting will affect
1110+
how to cast GUID to string in SQL. NHibernate will attempt to detect this
1111+
setting automatically from the connection string, but if the connection
1112+
or connection string is being handled by the application instead of by NHibernate,
1113+
you can use the <literal>sqlite.binaryguid</literal> NHibernate setting to override the behavior.
1114+
The value can be <literal>true</literal> or <literal>false</literal>.
1115+
</entry>
1116+
</row>
11031117
<row>
11041118
<entry>
11051119
<literal>nhibernate-logger</literal>

releasenotes.txt

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
Build 5.2.6
2+
=============================
3+
4+
Release notes - NHibernate - Version 5.2.6
5+
6+
11 issues were resolved in this release.
7+
8+
** Bug
9+
10+
* #2190 Cannot instantiate a SessionFactory using Prevalence cache
11+
* #2177 New Fetch() method in QueryOver returns IQueryOver<> instead of QueryOver<>
12+
* #2172 Using DependentTransaction fails
13+
* #2175 Subcriteria on component collection generates incorrect join alias
14+
* #2173 Futures not batching correctly in NH 5.2.x
15+
* #2141 Undefined call to Equals object in collection during flush just before commit
16+
* #2127 StackExchangeRedisCache with PreferMultipleGet = true calls GetMany multiple times
17+
* #2110 Wrong GUID to string conversion with SQLite BinaryGuid=False
18+
19+
** Task
20+
21+
* #2200 Release 5.2.6
22+
* #2199 Upgrade AsyncGenerator to 0.8.2.12
23+
24+
** Tests
25+
26+
* #2132 Add GetMany for ReadWriteCache tests
27+
128
Build 5.2.5
229
=============================
330

@@ -342,6 +369,14 @@ Release notes - NHibernate - Version 5.2.0
342369
As part of releasing 5.2.0, a misnamed setting in 5.0.0 release notes has been fixed:
343370
transaction.use_connection_on_system_events correct name is transaction.use_connection_on_system_prepare
344371

372+
Build 5.1.6
373+
=============================
374+
375+
Release notes - NHibernate - Version 5.1.6
376+
377+
** Bug
378+
* #2172 Using DependentTransaction fails
379+
345380
Build 5.1.5
346381
=============================
347382

@@ -605,6 +640,14 @@ Release notes - NHibernate - Version 5.1.0
605640
As part of releasing 5.1.0, a missing 5.0.0 possible breaking change has been added about inequality semantic in LINQ
606641
queries. See 5.0.0 possible breaking changes.
607642

643+
Build 5.0.8
644+
=============================
645+
646+
Release notes - NHibernate - Version 5.0.8
647+
648+
** Bug
649+
* #2172 Using DependentTransaction fails
650+
608651
Build 5.0.7
609652
=============================
610653

src/AsyncGenerator.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
- pattern: ^.*(Hql\.g).*$
88
analyzation:
99
methodConversion:
10+
#TODO 6.0: Remove ignore rule for IQueryBatchItem.ProcessResults
11+
- conversion: Ignore
12+
name: ProcessResults
13+
containingTypeName: IQueryBatchItem
1014
- conversion: Ignore
1115
name: PostProcessInsert
1216
containingTypeName: HqlSqlWalker
@@ -185,6 +189,18 @@
185189
- pattern: ^.*(Hql\.g).*$
186190
analyzation:
187191
methodConversion:
192+
- conversion: Ignore
193+
name: CanUseDependentTransaction
194+
containingTypeName: DistributedSystemTransactionFixture
195+
- conversion: Ignore
196+
name: CanUseSessionWithManyDependentTransaction
197+
containingTypeName: DistributedSystemTransactionFixture
198+
- conversion: Ignore
199+
name: CanUseDependentTransaction
200+
containingTypeName: SystemTransactionFixture
201+
- conversion: Ignore
202+
name: CanUseSessionWithManyDependentTransaction
203+
containingTypeName: SystemTransactionFixture
188204
- conversion: Copy
189205
name: AfterTransactionCompletionProcess_EvictsFromCache
190206
asyncExtensionMethods:

src/NHibernate.DomainModel/FooComponent.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ public Int32 Count
9292
set { _count = value; }
9393
}
9494

95+
public int NotMapped { get; set; }
96+
9597
public DateTime[] ImportantDates
9698
{
9799
get { return _importantDates; }

src/NHibernate.DomainModel/NHSpecific/NullableInt32.cs

Lines changed: 90 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace NHibernate.DomainModel.NHSpecific
77
/// A nullable type that wraps an <see cref="Int32"/> value.
88
/// </summary>
99
[TypeConverter(typeof(NullableInt32Converter)), Serializable()]
10-
public struct NullableInt32 : IFormattable, IComparable
10+
public struct NullableInt32 : IFormattable, IComparable, IConvertible
1111
{
1212
public static readonly NullableInt32 Default = new NullableInt32();
1313

@@ -234,5 +234,94 @@ public static NullableInt32 Parse(string s)
234234
// TODO: implement the rest of the Parse overloads found in Int32
235235

236236
#endregion
237+
238+
#region IConvertible
239+
240+
public TypeCode GetTypeCode()
241+
{
242+
return _value.GetTypeCode();
243+
}
244+
245+
public bool ToBoolean(IFormatProvider provider)
246+
{
247+
return ((IConvertible) _value).ToBoolean(provider);
248+
}
249+
250+
public char ToChar(IFormatProvider provider)
251+
{
252+
return ((IConvertible) _value).ToChar(provider);
253+
}
254+
255+
public sbyte ToSByte(IFormatProvider provider)
256+
{
257+
return ((IConvertible) _value).ToSByte(provider);
258+
}
259+
260+
public byte ToByte(IFormatProvider provider)
261+
{
262+
return ((IConvertible) _value).ToByte(provider);
263+
}
264+
265+
public short ToInt16(IFormatProvider provider)
266+
{
267+
return ((IConvertible) _value).ToInt16(provider);
268+
}
269+
270+
public ushort ToUInt16(IFormatProvider provider)
271+
{
272+
return ((IConvertible) _value).ToUInt16(provider);
273+
}
274+
275+
public int ToInt32(IFormatProvider provider)
276+
{
277+
return ((IConvertible) _value).ToInt32(provider);
278+
}
279+
280+
public uint ToUInt32(IFormatProvider provider)
281+
{
282+
return ((IConvertible) _value).ToUInt32(provider);
283+
}
284+
285+
public long ToInt64(IFormatProvider provider)
286+
{
287+
return ((IConvertible) _value).ToInt64(provider);
288+
}
289+
290+
public ulong ToUInt64(IFormatProvider provider)
291+
{
292+
return ((IConvertible) _value).ToUInt64(provider);
293+
}
294+
295+
public float ToSingle(IFormatProvider provider)
296+
{
297+
return ((IConvertible) _value).ToSingle(provider);
298+
}
299+
300+
public double ToDouble(IFormatProvider provider)
301+
{
302+
return ((IConvertible) _value).ToDouble(provider);
303+
}
304+
305+
public decimal ToDecimal(IFormatProvider provider)
306+
{
307+
return ((IConvertible) _value).ToDecimal(provider);
308+
}
309+
310+
public DateTime ToDateTime(IFormatProvider provider)
311+
{
312+
return ((IConvertible) _value).ToDateTime(provider);
313+
}
314+
315+
public string ToString(IFormatProvider provider)
316+
{
317+
return _value.ToString(provider);
318+
}
319+
320+
public object ToType(System.Type conversionType, IFormatProvider provider)
321+
{
322+
return ((IConvertible) _value).ToType(conversionType, provider);
323+
}
324+
325+
#endregion
237326
}
238327
}

src/NHibernate.DomainModel/Northwind/Entities/Address.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ public string Fax
6161
get { return _fax; }
6262
}
6363

64+
public int NotMapped => 1;
65+
6466
public static bool operator ==(Address address1, Address address2)
6567
{
6668
if (!ReferenceEquals(address1, null) &&
@@ -114,4 +116,4 @@ public override int GetHashCode()
114116
(_fax ?? string.Empty).GetHashCode();
115117
}
116118
}
117-
}
119+
}

0 commit comments

Comments
 (0)