Skip to content

Update master #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 270 commits into from
Nov 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
270 commits
Select commit Hold shift + click to select a range
2d7097c
Expose Fetch method returning QueryOver
bahusoid Jun 13, 2019
c436dd4
Fix Criteria withClause for many-to-many
bahusoid Apr 30, 2019
f1a3b97
Fix generating join aliases for subcriteria
ggeurts Jun 12, 2019
e0b60cf
Upgrade AsyncGenerator to 0.8.2.11
bahusoid Jun 14, 2019
af3ad13
Obsolete interfaces for Loquacios configuration and use config class…
bahusoid Jun 18, 2019
0bdee94
Port Hibernate's support subqueries in HQL as CASE statement alternat…
maca88 Jun 19, 2019
3f9d6d6
Port Hibernate's Aggregate functions for subqueries
maca88 Jun 20, 2019
03e5fa6
Add test for bidirectional list fail when session only knows about child
RogerKratz Jun 20, 2019
4d0da00
Allow to override default types with length or precision parameters (…
bahusoid Jul 11, 2019
3041c49
Optimize usages of SqlString.Append (#2166)
bahusoid Jul 12, 2019
3819f09
Skip null entities when bag is populated (#2181)
bahusoid Jul 16, 2019
a8f4ea3
Fix future queries with non lazy associations (#2174)
bahusoid Jul 16, 2019
89e4422
Fix HQL with joins in sub-select creating wrong SQL (#2146)
csharper2010 Jul 16, 2019
3873844
Fix braces layout in .editorconfig setting
hazzik Jul 17, 2019
0ca3028
Fix nuget symbol push
fredericDelaporte Aug 18, 2019
c31527e
Fix session factory deserialization with Prevalence Cache
fredericDelaporte Aug 18, 2019
d636a40
Fix GUID to string conversion when BinaryGuid=False
oskarb Aug 24, 2019
d0a61d2
Re-generate async
fredericDelaporte Aug 24, 2019
3298f99
Update Async generator to 0.8.2.12
fredericDelaporte Aug 25, 2019
18caed2
Fix dependent transaction failure (#2197)
fredericDelaporte Sep 5, 2019
f7b64c5
Release 5.2.6
fredericDelaporte Aug 25, 2019
3e78b69
Unify handling of composite values in hql and Criteria (#2159)
bahusoid Sep 11, 2019
673084b
Port SupportsRowValueConstructorSyntaxInInList values
bahusoid Sep 12, 2019
76ff41d
Fix build menu for running NUnit tests with 3.10.0
fredericDelaporte Sep 15, 2019
f1aa87f
Fix ShowBuildMenu.sh current directory (#2215)
hazzik Sep 15, 2019
1c779fa
Allow configuring auto-join transaction globally (#2214)
fredericDelaporte Sep 16, 2019
03500af
Add a shortcut to reduce Transaction.Current reads (#2213)
fredericDelaporte Sep 16, 2019
3f74632
Fix missing alias for subquery entity references in update statements…
bahusoid Sep 18, 2019
7560377
Restrict #2218 tests to only dialects that are supported
hazzik Sep 18, 2019
48b3bb9
Fix BuildTool output path (#2219)
hazzik Sep 20, 2019
8a8c3f2
Avoid unnecessary locking via MethodImplOptions.Synchronized (#2225)
bahusoid Sep 24, 2019
a41010f
Use DateTime.UtcNow for timestamps
bahusoid Sep 23, 2019
4138171
Short-Circuit SessionFactoryImpl.Close() when already closed (#2223)
albertodall Sep 27, 2019
4d47799
Support LINQ GroupBy subquery (#2210)
bahusoid Sep 27, 2019
b845938
Fix invalid alias name in Linq Joins (#2231)
gliljas Sep 27, 2019
2c53c34
Add support for IN clause n hql for composite keys on databases not s…
bahusoid Sep 29, 2019
01effc3
Upgrade AsyncGenerator to 0.17.1 (#2182)
maca88 Sep 29, 2019
260c4c9
Fix possible thread-safety issue with delayed entity inserts (#2233)
bahusoid Oct 1, 2019
94a94da
Use SqlStringBuilder for batching Future/QueryBatch queries (#2232)
bahusoid Oct 1, 2019
5b03aa6
Merge branch '5.2.x'
fredericDelaporte Oct 3, 2019
c79ea1f
Include backports release notes
fredericDelaporte Oct 3, 2019
e4d3c96
Fix Order By for composite property projection in Criteria (#2160)
bahusoid Oct 9, 2019
8a7375a
Pinpoint Travis CI to using Ubuntu Trusty (14.04) to fix Firebird
hazzik Oct 10, 2019
23df8cd
Add sqlite.binaryguid to configuration schema (#2245)
fredericDelaporte Oct 15, 2019
dceb7fa
Ability to replace ConfigurationManager with a custom config provider…
bahusoid Oct 16, 2019
bf2f7f2
Improve handling of SqlCeParameter.SqlDbType (#2249)
hazzik Oct 17, 2019
891c632
Optimize GetOrphans and remove wrong checks from IsNotTransientSlow (…
bahusoid Oct 20, 2019
f35874a
Fix QueryOver Coalesce projection in Select (#2246)
bahusoid Oct 20, 2019
f1c88c2
Fix a flaky test (#2255)
fredericDelaporte Oct 21, 2019
d1ef4ed
Regenerate async code for #2056 (#2263)
fredericDelaporte Nov 3, 2019
97dedca
Update Restrictions.cs
bobinush Nov 6, 2019
6ab71d0
Fix white-spaces issues as identified by CodeFactor (#2265)
hazzik Nov 11, 2019
d8931ac
Fix duplicated methods generated in proxies (#2264)
fredericDelaporte Nov 11, 2019
99d48f5
Add missing options to QueryOver (#2275)
fredericDelaporte Dec 1, 2019
77738a0
Make persistent collection classes implement the IReadOnly* interface…
marcelltoth Dec 17, 2019
92133f0
Allow customizing 'alias to bean' property not found behavior (#2287)
chris-peterson Dec 17, 2019
8530ca4
Fix GenericBatchingBatcher to call IInterceptor.OnPrepareStatement (#…
maca88 Dec 22, 2019
8c7444d
Cache query plan for DML LINQ queries (#2229)
bahusoid Dec 22, 2019
3eb16b0
Fix subclass filter on key columns (#2288)
bahusoid Dec 22, 2019
c8c52aa
Add a driver to support Microsoft.Data.SqlClient provider (#2216)
hazzik Dec 23, 2019
4e54de2
Update RtMemoryCache framework dependency (#2293)
fredericDelaporte Dec 23, 2019
42c2f9b
Optimize filter applying logic (#2295)
bahusoid Dec 27, 2019
1920603
Add StackExchangeRedis cache provider documentation (#2294)
fredericDelaporte Dec 27, 2019
df6cbbe
Proper query plan caching for DML LINQ queries (#2299)
bahusoid Jan 12, 2020
e8bba30
Add sqlite.binaryguid to configuration schema (#2245)
fredericDelaporte Oct 15, 2019
72fddfb
Pinpoint Travis CI to using Ubuntu Trusty (14.04) to fix Firebird
hazzik Oct 10, 2019
6784416
Add logging for QueryBatch similar to Loader.DoQuery
bahusoid Jan 13, 2020
e418fbc
Do not cache ExpandedQueryExpression query plan if it's based on not …
bahusoid Jan 3, 2020
40779f9
Release 5.2.7
fredericDelaporte Jan 12, 2020
3ec4b57
Merge branch '5.2.x'
fredericDelaporte Jan 19, 2020
e613d8a
Include 5.1.7 backport release notes
fredericDelaporte Jan 19, 2020
97d2184
Prevent calling UpdateTimestampsCache if query spaces are not changed…
hazzik Feb 20, 2020
b9dc310
Add support for fetching an individual lazy property with Criteria (#…
bahusoid Feb 20, 2020
d4206e2
Reduce cast usage for aggregate functions (#2036)
maca88 Feb 20, 2020
e3bd18e
Add SetFlushMode to QueryOver
fredericDelaporte Feb 22, 2020
0595a4a
Add SetFlushMode to Linq
fredericDelaporte Feb 22, 2020
0d65c8b
Merge pull request #2317 from fredericDelaporte/FlushMode
fredericDelaporte Feb 25, 2020
638db27
Enhance nullability check for "==" and "!=" operators for LINQ provid…
maca88 Feb 27, 2020
873feec
Upgrade AsyncGenerator to 0.18.1
maca88 Feb 29, 2020
6c252ee
Add cross join support for Hql and Linq query provider (#2327)
maca88 Mar 21, 2020
d84b43e
Support evaluation of DateTime.Now on db side
fredericDelaporte Oct 3, 2018
58272eb
Support evaluation of Guid.NewGuid() on db side
fredericDelaporte Oct 4, 2018
3a8a1ba
Support evaluation of Random.Next and NextDouble on db side
fredericDelaporte Oct 6, 2018
450313b
Merge pull request #1868 from fredericDelaporte/DbSideNowGuidRandom
fredericDelaporte Mar 22, 2020
2b60d20
Fix some NRE in work isolation and connection handling
fredericDelaporte Mar 22, 2020
8d58808
Clean up a bit isolation work code
fredericDelaporte Mar 22, 2020
e7ba6ac
Merge pull request #2337 from fredericDelaporte/FixSomeNre
fredericDelaporte Mar 27, 2020
0f02335
Support setting parameters with a dynamic object (#2321)
fredericDelaporte Mar 29, 2020
d4e3a54
Fix Linq Fetch/FetchMany after SelectMany method
maca88 Mar 6, 2020
d99a382
Refactored session List<T> method for Criteria (#1627)
bahusoid Mar 30, 2020
3d92bf4
Call generic query.List from Linq queries (#2238)
bahusoid Mar 30, 2020
b81e422
Fix custom sql loader with composite id (#452)
hailtondecastro Mar 31, 2020
5cf0cf4
Force join for comparisons in hql when not null entity key can repres…
bahusoid Mar 31, 2020
c0f5042
Reduce cast usage for COUNT aggregate and add support for Mssql count…
maca88 Apr 1, 2020
07ffb61
Fix a missing async regeneration in #2081
fredericDelaporte Apr 4, 2020
d68d402
Use entities prepared by Loader in hql select projections (#2082)
bahusoid Apr 5, 2020
a05f6a9
Add support for caching fetched relations with Criteria (#2090)
bahusoid Apr 6, 2020
d68bdf8
Improve async locking (#2147)
maca88 Apr 12, 2020
708ae88
Configure log4net from embedded resource log4net.xml (#2235)
bahusoid Apr 13, 2020
f47b06d
Add support for MemberInit expression in GroupBySelectClauseRewriter …
maca88 Mar 6, 2020
66b9143
Add support for OData group by queries (#2135)
maca88 Apr 13, 2020
25bc518
Support basic arithmetic operations (+, -, *, /) in QueryOver (#2156)
bahusoid Apr 13, 2020
66fa1d4
Fix SQLite typing (#2346)
fredericDelaporte Apr 14, 2020
aadc6ce
Merge pull request #2322 from maca88/GH2221
fredericDelaporte Apr 14, 2020
129e4c1
Get rid of JoinedEnumerable<T> and SingletonEnumerable<T> (#2351)
bahusoid Apr 19, 2020
b4385c6
Update Microsoft.SourceLink.GitHub to 1.0.0
hazzik Apr 18, 2020
8bb204f
Use static ReferenceComparer for reference comparisons (#2348)
bahusoid Apr 19, 2020
697b6f7
Add support for Oracle binary floating point types (#2349)
maca88 Apr 19, 2020
a326955
Do not require Mono to build on not Windows (#2354)
hazzik Apr 20, 2020
7a8d36d
Implement more performant versions for ReflectHelper.GetMethod/Defini…
hazzik Apr 21, 2020
8ac6fa3
Proper support for IN clause for composite values in Criteria (#2158)
bahusoid Apr 21, 2020
9427018
Add multiple arguments support for ISQLFunction (#2316)
maca88 Apr 21, 2020
b25f922
Replace IdentitySet with HashSet<object> (#2356)
bahusoid Apr 24, 2020
329d591
Remove most RemoveAsAliasesFromSql usages (#2248)
bahusoid Apr 26, 2020
6b71ce6
Update IIsEntityDecider to use ExpressionsHelper.TryGetMappedType (#2…
maca88 Apr 26, 2020
cc31c44
Add OData test for single property $expand
maca88 Apr 22, 2020
cc6baef
Upgrade AsyncGenerator to 0.18.2
maca88 Apr 24, 2020
5b3ed34
Fix transaction leak
fredericDelaporte Feb 2, 2020
443b462
Obsolete Transaction properties
fredericDelaporte Feb 2, 2020
c60136b
Merge pull request #2310 from fredericDelaporte/AdoTransactionLeak
hazzik Apr 30, 2020
62ee459
Add tests for proxy interface handling (#2066)
bahusoid May 2, 2020
e0de3ab
Add dev build version suffix (#2254)
bahusoid May 9, 2020
500a8b8
Minimize Linq query parameters (#2335)
maca88 May 9, 2020
fffb8d2
Support fetching individual lazy properties for Criteria EntityProjec…
bahusoid May 9, 2020
14e2d87
Rename ISQLFunctionExtended.FunctionName to Name (#2359)
maca88 May 11, 2020
80af768
Replace SafetyEnumerable<T> with OfType<T> where applicable (#2368)
bahusoid May 12, 2020
8b5bd0f
Add MyGet gallery link to readme (#2376)
hazzik May 12, 2020
ae0f1f7
Optimize LINQ batch item processing for queries with overridden resul…
bahusoid May 13, 2020
4bd76b2
Use dotnet to push packages to nuget (#2377)
hazzik May 13, 2020
fd16d36
Simplify swap BodyClauses logic in LINQ Visitors (#2379)
bahusoid May 16, 2020
9006998
Use optimized Dictionary.Remove(key, out value) in .NET Core (#2381)
bahusoid May 16, 2020
d25d07b
Add left join support for Linq query provider (#2328)
maca88 May 16, 2020
ad19ece
Fix detecting entities of left join by IEntityDecider (#2385)
hazzik May 16, 2020
4529342
Tests to verify NH-2329 is obsolete (#2384)
bahusoid May 17, 2020
7468a00
Refactor debug logging in AbstractBatcher (#2382)
bahusoid May 17, 2020
02fc529
Fix OData filtering by a base class member (#2387)
maca88 May 19, 2020
a7025c6
Use latest Firebird for appveyour and travis (#2391)
bahusoid May 20, 2020
20a61d1
Fix KeyNotFoundException in StatefulPersistenceContext.RemoveEntity o…
hazzik May 20, 2020
40a6d0d
Update GitReleaseManager (#2397)
fredericDelaporte May 25, 2020
1d8fb9c
Add missing ISession.Get(entityName, id, lockMode) (#2378)
bahusoid May 25, 2020
bd3fa29
Add locate support for SQLite (#2392)
bahusoid May 25, 2020
14fef3f
Add support for criteria aliases in SqlProjection and SQLCriterion (#…
hazzik May 26, 2020
50fa0d8
Optimize PersistentGenericSet snapshot (#2394)
maca88 May 31, 2020
da13b9f
Fix Oracle binary floating point setting
maca88 May 26, 2020
8e98169
Fix OData string comparisons (lt, gt, ge, le) (#2386)
bahusoid Jun 2, 2020
da4b6c9
Fix QueryKey Equals method
maca88 May 27, 2020
ae4aed2
Optimize PersistentGenericBag.EqualsSnapshot (#2399)
bahusoid Jun 7, 2020
b7213eb
Optimize JoinWalker.WhereString method
hazzik May 26, 2020
0e7bc34
Make Render method virtual for Cast function (#2406)
maca88 Jun 7, 2020
111f755
Throw AggregateHibernateException when schema auto-update fails
ylukomskyi Jun 7, 2020
d58b668
Fix SQL formatter failures
fredericDelaporte Jun 14, 2020
3cfb009
Add an option to register a custom pre-transformer for a Linq query (…
maca88 Jun 19, 2020
752fd62
Fix an inversion of meaning (#2422)
fredericDelaporte Jun 23, 2020
fbf41a6
Multi-Tenancy: Implement tenant per Database strategy (#2108)
bahusoid Jul 12, 2020
74b97af
Add Linq parameter type detection (#2365)
maca88 Jul 14, 2020
7fd1a9a
Fix NRE when having subselect and nullable value selection for Linq q…
maca88 Jul 7, 2020
c47f316
Fix NRE in SchemaUpdate and SchemaExport Execute method for collectio…
maca88 Jul 14, 2020
5d49681
Document cache.serializer setting of CoreDistributedCache (#2430)
fredericDelaporte Jul 14, 2020
a6a8267
Add new collection operation queue mechanism (#2010)
maca88 Jul 15, 2020
46cf6e5
Document the configuration provider (#2431)
fredericDelaporte Jul 16, 2020
d9ce8d0
Improve slightly mapping documentation (#2433)
fredericDelaporte Jul 19, 2020
ae0f75c
Document the caches configuration providers
fredericDelaporte Jul 16, 2020
cf32e05
Release 5.3 (#2388)
fredericDelaporte Jul 19, 2020
285d26a
Fix old http://nhibernate.info URIs (#2436)
fredericDelaporte Jul 20, 2020
a10ba17
Fix iconUrl warning (#2435)
fredericDelaporte Jul 20, 2020
9711784
Merge branch 'master' into 5.3.x
hazzik Jul 20, 2020
5993542
Fix invalid cast on nullable custom type with Linq (#2438)
maca88 Jul 22, 2020
0a2b1bb
Set version 5.3.1-dev
hazzik Jul 22, 2020
6f68581
Set version 5.4.0-dev
hazzik Jul 22, 2020
cf1cc9c
Fix detecting parameter types in subqueries for Linq provider (#2443)
maca88 Jul 22, 2020
f797ec5
Fix InvalidCastException for Future Criteria with aliased fetches (#2…
bahusoid Jul 22, 2020
7bb83f6
Fix casting unsigned numeric types for Linq provider (#2447)
maca88 Jul 25, 2020
2011a77
Release 5.3.1
fredericDelaporte Jul 24, 2020
3b5951b
Merge tag '5.3.1'
hazzik Jul 27, 2020
c3ac6a0
Avoid lambda compilation for constant and member access expressions i…
bahusoid Jul 28, 2020
9cc6817
Fix parameters inside evaluatable expressions for Linq provider
maca88 Jul 29, 2020
c66578e
Fix detecting parameter type for Contains method for Linq provider (#…
maca88 Jul 30, 2020
3c161f0
Set version 5.3.2-dev
fredericDelaporte Jul 30, 2020
e72daa0
Fix entity join for entity with discriminator (#2464)
bahusoid Jul 30, 2020
c8812b8
Fix NRE in AsyncReaderWriterLock.ReadLock method (#2469)
maca88 Aug 5, 2020
865365e
Fix parameter detection related to sequence selectors for Linq provid…
maca88 Aug 8, 2020
ed36de0
Release 5.3.2
fredericDelaporte Aug 8, 2020
b8fbadd
Merge tag 5.3.2
fredericDelaporte Aug 9, 2020
53df423
Simplify single alias retrieval for SimpleProjections (#2460)
bahusoid Aug 10, 2020
80ecd2e
Fetch all lazy properties when entity is already loaded fails (#2474)
danko-d Aug 16, 2020
9a1f10f
Enable 5.3.3 dev versions
fredericDelaporte Aug 16, 2020
3e0a744
Add missing possible breaking changes for #2010
maca88 Aug 13, 2020
1df24c6
Entity Joins are not polymorphic
bahusoid Aug 14, 2020
95809ad
Add Projections.Select in Criteria (#2486)
bahusoid Aug 16, 2020
d5d2f00
Improve CriteriaAssertFixture (#2489)
ngbrown Aug 16, 2020
3f8afe3
Fix lazy set when adding a transient element with overridden Equals m…
maca88 Aug 19, 2020
b131556
Throw entity not mapped exception for entity join in hql if possible …
bahusoid Aug 19, 2020
46a18cc
Fix parameter detection for Equals and ComapreTo methods for Linq pro…
maca88 Aug 14, 2020
2d3649e
Add missing using in async generated code (#2497)
maca88 Aug 23, 2020
008760c
Fix missing joins in subquery in case joins are present in main query…
bahusoid Aug 27, 2020
9fc784e
Support count distinct on function in hql (#2502)
bahusoid Aug 30, 2020
f43dc6d
Flatten AsQueryableResultOperator (#2503)
hazzik Aug 30, 2020
ea56cbc
Fix cast operation failing when an enum is mapped as an AnsiString (#…
gliljas Aug 30, 2020
848b915
Modification to allow Linq subqueries to have paging (OrderBy/Take) (…
ngbrown Sep 2, 2020
1581887
Fix ExtractInterceptor for subclasses (#2509)
maca88 Sep 2, 2020
70c79ee
Remove OrderByClause from query models with Contains, All and Any res…
hazzik Sep 4, 2020
74ff7a1
Suppress single class per file rule for test project (#2516)
bahusoid Sep 4, 2020
7360394
Avoid unnecessary casting for Linq provider (#2491)
maca88 Sep 6, 2020
98de5ae
Fix parameter caching for Linq provider
maca88 Sep 4, 2020
765e1ed
Removed persistent collections Equals/GetHashCode overrides (#2461)
bahusoid Sep 6, 2020
9a5a50e
Throw for Criteria over not mapped entity (#2487)
bahusoid Sep 7, 2020
a1e709b
Fix Linq Fetch over component after fetching an association (#2517)
maca88 Sep 8, 2020
73d9854
Throw for LINQ queries on unmapped entities (#2504)
bahusoid Sep 8, 2020
07aab2e
Reuse joins generated by Where and OrderBy methods when fetching for …
maca88 Sep 8, 2020
199a1aa
Fix wrong order by with ordered collection fetch in Criteria (#2521)
bahusoid Sep 9, 2020
3a5f949
Fix wrong inner join fetch on not lazy component key-many-to-one prop…
bahusoid Sep 9, 2020
63b6b42
Fix parameter detection for Contains method for Linq provider (#2520)
maca88 Sep 9, 2020
1fa50d9
Add test case for #1180 and improve NullableType.ToString (#2456)
delta-emil Sep 10, 2020
b21a978
Fix ConditionalProjection GetType from outer query (#2455)
delta-emil Sep 12, 2020
1dfdc65
Support Aggregate subqueries with paging on MS SQL Server (#2518)
bahusoid Sep 12, 2020
7530a25
Release 5.3.3 (#2527)
fredericDelaporte Sep 13, 2020
0fb8160
Merge branch '5.3.x'
fredericDelaporte Sep 13, 2020
bc1484c
Add support for table group joins support in hql (#2361)
bahusoid Sep 14, 2020
ee0d520
Simplify type check in ConditionalProjection (#2535)
bahusoid Sep 14, 2020
32a0227
Do not move ON condition to Where clause in LINQ (#2539)
bahusoid Sep 15, 2020
19b2ad5
Make SqlType.Equals symmetrical (#2534)
bahusoid Sep 15, 2020
629ac62
Remove alias substitution for filtered many-to-many collection in hql…
bahusoid Sep 16, 2020
63e82b7
Fix parameter detection for expression arguments (#2542)
maca88 Sep 17, 2020
3fab693
Apply filters for entity joins in hql (#2550)
bahusoid Sep 18, 2020
186a88b
Enable 5.3.4 dev versions
fredericDelaporte Sep 18, 2020
a49b481
Enable named parameters on DB2CoreDriver (#2546)
hazzik Sep 20, 2020
638a7b5
Support left and right functions in hql (#2553)
bahusoid Sep 20, 2020
70d5358
Mark DB2Dialect as not supporting null columns in unique constraint (…
hazzik Sep 20, 2020
053467c
Fix paging in DB2Dialect (#2547)
hazzik Sep 21, 2020
75d1465
Add test case for AsQueryable() not working in nested select (#2541)
krzkowal Sep 21, 2020
44f3406
Add spaces around concat operator in base Dialect (#2555)
hazzik Sep 21, 2020
c3380e3
Support AsQueryable() call in nested Select (#2557)
bahusoid Sep 22, 2020
da95db4
Fix caching linq query with ThenFetchMany (#2558)
illkostinf Sep 23, 2020
f92ee44
Register right function for Firebird and PostgreSQL (#2556)
bahusoid Sep 23, 2020
b36d177
Update ReLinq and LinFu links (#2570)
wallymathieu Sep 27, 2020
179056e
Add default value for CancellationToken in IQueryBatch.GetResultAsync…
lofcz Sep 28, 2020
9255435
Add support for internal entity classes by proxy factory (#2568)
bahusoid Sep 28, 2020
b27b7f7
Fix joining with an inherited property from another table for Linq pr…
maca88 Oct 14, 2020
d6e054f
Remove no longer used code in QueryModelVisitor
bahusoid Oct 13, 2020
ef4f4a4
Upgrade MySql client and remove allowed failures on CI builds (#2501)
bahusoid Oct 22, 2020
f98c463
Add support for table group joins for subclasses in Criteria (#2545)
bahusoid Oct 23, 2020
2ad61c6
Replace casting with NodeType checks in Criteria ExpressionProcessor …
bahusoid Oct 23, 2020
a129e75
Release 5.3.4 (#2587)
fredericDelaporte Nov 1, 2020
18667cf
Merge 5.3.4 into master
fredericDelaporte Nov 1, 2020
eb137cc
Fix invalid alias inside Dml subquery (#2595)
bahusoid Nov 9, 2020
158baa5
Fix missing subclass discriminator in ON clause for entity joins (#2600)
bahusoid Nov 13, 2020
7efd8f1
Enable 5.3.5 dev builds
bahusoid Nov 13, 2020
5ec4821
Release 5.3.5
fredericDelaporte Nov 13, 2020
a58c98d
Merge branch '5.3.x'
fredericDelaporte Nov 15, 2020
58e3cb2
Upgrade AsyncGenerator to 0.19.1 (#2605)
maca88 Nov 19, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 12 additions & 0 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": 1,
"isRoot": true,
"tools": {
"csharpasyncgenerator.tool": {
"version": "0.19.1",
"commands": [
"async-generator"
]
}
}
}
7 changes: 7 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ insert_final_newline = true
indent_style = tab
dotnet_sort_system_directives_first = true
csharp_space_after_cast = true
csharp_new_line_before_open_brace = all
csharp_new_line_before_else = true
csharp_new_line_before_catch = true
csharp_new_line_before_finally = true
csharp_new_line_before_members_in_object_initializers = true
csharp_new_line_before_members_in_anonymous_types = true
csharp_new_line_between_query_expression_clauses = true

[*.xsd]
indent_style = tab
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ TestResult.xml
.idea/
.vs/
/build-common/NHibernate.dev.props
/doc/reference/master.xml
24 changes: 11 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
os: linux
dist: xenial
language: csharp
mono: latest
mono: none
dotnet: 2.1.300
sudo: required
services:
- mysql
- postgresql
Expand All @@ -12,35 +13,32 @@ env:
- DB=Firebird
- DB=MySQL CONNECTION_STRING="Server=127.0.0.1;Uid=root;Database=nhibernate;Old Guids=True;"
- DB=SQLite
matrix:
allow_failures:
- env: DB=MySQL CONNECTION_STRING="Server=127.0.0.1;Uid=root;Database=nhibernate;Old Guids=True;"
before_install:
- curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
- curl https://packages.microsoft.com/config/ubuntu/14.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list
- sudo apt-get update -qq
- sudo apt-get install -y powershell
- |-
if [[ "$DB" == "MySQL" ]]
then
echo -e '[server]\nlower_case_table_names=1' | sudo tee -a /etc/mysql/my.cnf
echo -e '[server]\nlower_case_table_names=1\n[mysqld]\ncharacter-set-server=utf8\ncollation-server=utf8_general_ci' | sudo tee -a /etc/mysql/my.cnf
sudo service mysql restart
fi
- |-
if [[ "$DB" == "Firebird" ]]
then
sudo apt-get install -y libicu-dev libtommath-dev curl
curl -L -O https://github.com/FirebirdSQL/firebird/releases/download/R3_0_3/Firebird-3.0.3.32900-0.amd64.tar.gz
tar xzvf Firebird-3.0.3.32900-0.amd64.tar.gz
pushd Firebird-3.0.3.32900-0.amd64
sudo apt-get install -y libtommath-dev
# This would be required on bionic and above
# sudo ln -s /usr/lib/x86_64-linux-gnu/libtommath.so.1 /usr/lib/x86_64-linux-gnu/libtommath.so.0
wget -q https://github.com/FirebirdSQL/firebird/releases/download/R3_0_5/Firebird-3.0.5.33220-0.amd64.tar.gz
tar xzvf Firebird-3.0.5.33220-0.amd64.tar.gz
pushd Firebird-3.0.5.33220-0.amd64
sudo ./install.sh -silent
popd
export $(sudo cat /opt/firebird/SYSDBA.password | grep -v ^# | xargs)
sudo chmod 775 /tmp/firebird
echo -e "nhibernate = /tmp/firebird/nhibernate.fdb" | sudo tee -a /opt/firebird/databases.conf
echo -e "AuthServer = Srp\nAuthClient = Srp\nUserManager = Srp\nWireCrypt = Enabled" | sudo tee -a /opt/firebird/firebird.conf
sudo /opt/firebird/bin/gsec -modify SYSDBA -pw masterkey -admin yes
sudo service firebird restart
sudo systemctl restart firebird-superserver
fi
before_script:
- if [[ "$DB" == "SqlServer2008" ]]; then docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=P@ssw0rd" -e "MSSQL_PID=Express" -p 1433:1433 -d --name sqlexpress microsoft/mssql-server-linux:latest; fi
Expand Down
2 changes: 1 addition & 1 deletion HowInstall.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ Required Bins : Minimal required assemblies to work with NHibernate
Required for LazyLoading :
NHibernate 2.1 has a new important feature regarding dynamic-proxy systems for lazy-loading
Details are available in releasenotes.txt and in this post
http://nhibernate.info/blog/2008/11/09/nh2-1-0-bytecode-providers.html
https://nhibernate.info/blog/2008/11/09/nh2-1-0-bytecode-providers.html
38 changes: 28 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,42 @@ Welcome to NHibernate
NHibernate is a mature, open source object-relational mapper for the .NET framework. It is actively developed,
fully featured and used in thousands of successful projects.

The NHibernate community website - <http://nhibernate.info> - has a range of resources to help you get started,
The NHibernate community website - <https://nhibernate.info> - has a range of resources to help you get started,
including [howtos][A1], [blogs][A2] and [reference documentation][A3].

[A1]: http://nhibernate.info/doc/
[A2]: http://nhibernate.info/blog/
[A3]: http://nhibernate.info/doc/nh/en/index.html
[A1]: https://nhibernate.info/doc/
[A2]: https://nhibernate.info/blog/
[A3]: https://nhibernate.info/doc/nh/en/index.html

Latest Version
Latest Release Version
--------------

The quickest way to get the latest release of NHibernate is to add it to your project using
NuGet (<http://nuget.org/List/Packages/NHibernate>).
NuGet (<https://nuget.org/List/Packages/NHibernate>).

Alternatively binaries are available from SourceForge at <http://sourceforge.net/projects/nhibernate>.

You are encouraged to review the release notes ([releasenotes.txt](releasenotes.txt)), particularly when upgrading to a
later version. The release notes will generally document any breaking changes.

Nightly Development Builds
--------------------------

The quickest way to get the latest development build of NHibernate is to add it to your project using
NuGet from MyGet feed (<https://www.myget.org/gallery/nhibernate>).

In order to make life a little bit easier you can register the package source in the NuGet.Config
file in the top folder of your project, similar to the following.

```xml
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="NHibernateDevBuilds" value="https://www.myget.org/F/nhibernate/api/v3/index.json" />
</packageSources>
</configuration>
```

Community Forums
----------------

Expand All @@ -40,8 +58,8 @@ If you find any bugs, please report them using the [GitHub issue tracker][C1]. A
test-case that demonstrates the issue is usually required. Instructions on providing a test-case
can be found in [contributing guidelines][C3] or [here][C2].

[C1]: http://github.com/nhibernate/nhibernate-core/issues
[C2]: http://nhibernate.info/blog/2008/10/04/the-best-way-to-solve-nhibernate-bugs-submit-good-unit-test.html
[C1]: https://github.com/nhibernate/nhibernate-core/issues
[C2]: https://nhibernate.info/blog/2008/10/04/the-best-way-to-solve-nhibernate-bugs-submit-good-unit-test.html
[C3]: CONTRIBUTING.md

Licenses
Expand Down Expand Up @@ -85,7 +103,7 @@ of NHibernate (in no particular order):
[Apache Software Foundation]: http://www.apache.org
[JetBrains]: http://www.jetbrains.com
[ReSharper]: http://www.jetbrains.com/resharper
[LinFu]: http://code.google.com/p/linfu
[LinFu]: https://github.com/philiplaureano/LinFu
[article]: http://www.codeproject.com/KB/recipes/sets.aspx
[Relinq]: http://relinq.codeplex.com/
[Relinq]: https://github.com/re-motion/Relinq
[AsyncGenerator]: http://github.com/maca88/AsyncGenerator
16 changes: 11 additions & 5 deletions ReleaseProcedure.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ These are the tasks typically needed to create an official NHibernate release.
that is about to happen (as these will show in the milestone).

* Create a draft release in Github with GitReleaseManager. If you have used
the NHibernate build menu, it should be available in Tools\gitreleasemanage.x.x.x\
the NHibernate build menu, it should be available in Tools\gitreleasemanager\x.x.x\
(change x.x.x by its current version in tools).
By example:

Tools\gitreleasemanager.0.7.0\tools\GitReleaseManager.exe create -o nhibernate -r nhibernate-core -m 5.1 -u username -p password
Tools\gitreleasemanager\0.11.0\tools\GitReleaseManager.exe create -o nhibernate -r nhibernate-core -m 5.3 --token yourGitHubTokenWithRepoScope

(Adjust the -m milestone parameter above, and add "-c branchname" if
releasing another branch than master)
Expand All @@ -25,9 +25,8 @@ Tools\gitreleasemanager.0.7.0\tools\GitReleaseManager.exe create -o nhibernate -
If the release tag does not match the released version with major.minor.release
formalism, the NuGet package will have an invalid link to release notes.

* Check/update version number in common.xml and NHibernate.props under
build-common folder, in master.xml under doc\reference folder, and in
appveyor.yml in the NHibernate root.
* Check/update version number in NHibernate.props under build-common folder.
Clear VersionSuffix if present.

* Don't forget to commit the above.

Expand Down Expand Up @@ -55,3 +54,10 @@ Tools\gitreleasemanager.0.7.0\tools\GitReleaseManager.exe create -o nhibernate -
* If this was a stable branch, merge it forward to master. Perhaps some
changes need to be edited out in the merge, but this will reduce the
risk of some issue being left unfixed on master.

* If this was the master branch, create the stable branch for the new release, named
according to its version with "x" instead of its patch number. By example, "5.3.x".

* If next version is decided set it in NHibernate.props under build-common folder
(in most cases - increment minor version) and set VersionSuffix to "dev".
Commit it directly (without going through a PR).
13 changes: 10 additions & 3 deletions ShowBuildMenu.bat
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
@echo off
pushd %~dp0

for /f "tokens=* USEBACKQ delims= " %%i in (`findstr /c:"NUnit.Console" "Tools\packages.csproj"`) do set NUNIT_VERSION=%%i
set NUNIT_VERSION=%NUNIT_VERSION:~51%
set NUNIT_VERSION=%NUNIT_VERSION:" />=%

set NANT="%~dp0Tools\nant\bin\NAnt.exe" -t:net-4.0
set BUILD_TOOL_PATH=%~dp0Tools\BuildTool\bin\BuildTool.dll
set BUILDTOOL=dotnet %BUILD_TOOL_PATH%
set AVAILABLE_CONFIGURATIONS=%~dp0available-test-configurations
set CURRENT_CONFIGURATION=%~dp0current-test-configuration
set NUNIT="%~dp0Tools\NUnit.ConsoleRunner.3.7.0\tools\nunit3-console.exe"
set NUNIT="%~dp0Tools\NUnit.ConsoleRunner\%NUNIT_VERSION%\tools\nunit3-console.exe"

if not exist %BUILD_TOOL_PATH% (
dotnet build %~dp0Tools\BuildTool\BuildTool.sln -c Release -o bin
pushd %~dp0Tools\BuildTool
dotnet build BuildTool.sln -c Release -o bin
popd
)

:main-menu
Expand Down Expand Up @@ -182,7 +188,8 @@ SET NUNITPLATFORM=
goto test-run

:test-run
start "nunit3-console" cmd /K %NUNIT% %NUNITPLATFORM% --agents=1 --process=separate NHibernate.nunit
%NANT% common.tools-restore
start "nunit3-console" cmd /K %NUNIT% %NUNITPLATFORM% --agents=1 NHibernate.nunit
goto main-menu

rem :build-test
Expand Down
46 changes: 9 additions & 37 deletions ShowBuildMenu.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/sh

cd "$(dirname "$0")"
SCRIPT_PATH="$(pwd)"
BUILD_TOOL_PATH="./Tools/BuildTool/bin/BuildTool.dll"
BUILD_TOOL="dotnet $BUILD_TOOL_PATH"
AVAILABLE_CONFIGURATIONS="available-test-configurations"
Expand All @@ -10,11 +12,14 @@ LIB_FILES2=""
CURRENT_CONFIGURATION="./current-test-configuration"
OPTION=0
async_generator_path=""
async_generator_version=""

if [ ! -f $BUILD_TOOL_PATH ]
then
dotnet build ./Tools/BuildTool/BuildTool.sln -c Release -o bin
cd ./Tools/BuildTool
dotnet build BuildTool.sln -c Release -o bin
fi
cd "$SCRIPT_PATH"

buildDebug(){
dotnet build ./src/NHibernate.sln
Expand Down Expand Up @@ -173,48 +178,15 @@ testRun(){
}

generateAsync(){
dotnet msbuild /t:Restore ./src/NHibernate.sln

getAsyncGeneratorPath
cd src
mono ../"$async_generator_path"
dotnet tool restore
dotnet restore ./NHibernate.sln
dotnet async-generator
cd ..

mainMenu
}

getAsyncGeneratorPath(){
if [ "$async_generator_path" ]
then
return
fi

cd Tools

if [ ! -f nuget.exe ]
then
wget https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
fi

async_generator_path="CSharpAsyncGenerator.CommandLine.$(cat packages.config | grep id=\"CSharpAsyncGenerator.CommandLine | cut -d\" -f4)/tools"

if [ ! -d $async_generator_path ]
then
mono nuget.exe install
fi

if [ ! -f $async_generator_path/SQLitePCLRaw.core.dll ]
then
# This "hidden" dependency causes a failure under some Mono setup, add it explicitly
mono nuget.exe install SQLitePCLRaw.core -Version 1.0.0
cp SQLitePCLRaw.core.1.0.0/lib/net45/SQLitePCLRaw.core.dll $async_generator_path/
fi

async_generator_path="Tools/$async_generator_path/AsyncGenerator.CommandLine.exe"

cd ..
}

mainMenu() {
echo "========================= NHIBERNATE BUILD MENU =========================="
echo "--- TESTING ---"
Expand Down
12 changes: 6 additions & 6 deletions Tools/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
nuget.exe
NUnit.*
vswhere.*
CSharpAsyncGenerator.CommandLine.*
gitreleasemanager.*
SQLitePCLRaw.core.*
nunit.*
vswhere/
csharpasyncgenerator.commandline/
gitreleasemanager/
obj/
microsoft.*
2 changes: 1 addition & 1 deletion Tools/actual_msbuild.cmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@echo off

for /f "usebackq tokens=*" %%i in (`%~dp0\vswhere.2.1.4\tools\vswhere -latest -products * -requires Microsoft.Component.MSBuild -property installationPath`) do (
for /f "usebackq tokens=*" %%i in (`%~dp0\vswhere\2.1.4\tools\vswhere -latest -products * -requires Microsoft.Component.MSBuild -property installationPath`) do (
set InstallDir=%%i
)

Expand Down
13 changes: 0 additions & 13 deletions Tools/packages.config

This file was deleted.

19 changes: 19 additions & 0 deletions Tools/packages.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>

<ItemGroup>
<Compile Remove="**\*" />
<EmbeddedResource Remove="**\*" />
<None Remove="**\*" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="vswhere" Version="2.1.4" />
<PackageReference Include="NUnit.Console" Version="3.10.0" />
<PackageReference Include="GitReleaseManager" Version="0.11.0" />
</ItemGroup>

</Project>
7 changes: 2 additions & 5 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 5.2.5.{build}
version: '{build}'
image: Visual Studio 2017
environment:
matrix:
Expand All @@ -13,9 +13,6 @@ environment:
init:
# Required for having windows endlines in sources zip
- git config --global core.autocrlf true
matrix:
allow_failures:
- DB: MySQL
build: off
before_test:
- ps: |-
Expand All @@ -25,7 +22,7 @@ before_test:
# Install Firebird
New-Item -ItemType Directory -Force $FireBirdPath > $null
Push-Location $FireBirdPath
Invoke-WebRequest 'https://github.com/FirebirdSQL/firebird/releases/download/R3_0_3/Firebird-3.0.3.32900-0_x64.zip' -OutFile firebird.zip
Invoke-WebRequest 'https://github.com/FirebirdSQL/firebird/releases/download/R3_0_5/Firebird-3.0.5.33220-0_x64.zip' -OutFile firebird.zip
Unblock-File firebird.zip
7z x firebird.zip
New-Item -ItemType Directory -Force Data
Expand Down
Loading