Skip to content

Commit 356ff7f

Browse files
committed
2 parents a65dbf9 + 0c9e442 commit 356ff7f

File tree

630 files changed

+8769
-6680
lines changed

Some content is hidden

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

630 files changed

+8769
-6680
lines changed

.config/dotnet-tools.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"isRoot": true,
44
"tools": {
55
"csharpasyncgenerator.tool": {
6-
"version": "0.21.1",
6+
"version": "0.22.0",
77
"commands": [
88
"async-generator"
99
]
1010
},
1111
"gitreleasemanager.tool": {
12-
"version": "0.11.0",
12+
"version": "0.18.0",
1313
"commands": [
1414
"dotnet-gitreleasemanager"
1515
]

.editorconfig

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ root=true
22

33
[*]
44
insert_final_newline = true
5+
charset = utf-8
56

67
[*.cs]
78
indent_style = tab
@@ -15,28 +16,29 @@ csharp_new_line_before_members_in_object_initializers = true
1516
csharp_new_line_before_members_in_anonymous_types = true
1617
csharp_new_line_between_query_expression_clauses = true
1718

19+
dotnet_diagnostic.NUnit1032.severity = suggestion
20+
dotnet_diagnostic.NUnit1028.severity = none
21+
dotnet_diagnostic.NUnit2045.severity = none
22+
# Consider using the constraint model, Assert.That
23+
dotnet_diagnostic.NUnit2005.severity = suggestion
24+
dotnet_diagnostic.NUnit2006.severity = suggestion
25+
dotnet_diagnostic.NUnit2015.severity = suggestion
26+
dotnet_diagnostic.NUnit2031.severity = suggestion
27+
dotnet_diagnostic.NUnit2049.severity = suggestion
28+
# The SameAs constraint always fails on value types as the actual and the expected value cannot be the same reference
29+
dotnet_diagnostic.NUnit2040.severity = suggestion
30+
1831
[*.xsd]
1932
indent_style = tab
2033

2134
[*.json]
2235
indent_style = space
2336
indent_size = 2
2437

25-
[*.xml]
38+
[{*.xml,*.csproj,*.vbproj}]
2639
indent_style = space
2740
indent_size = 2
28-
29-
[*.csproj]
30-
indent_style = space
31-
indent_size = 2
32-
33-
[*.vbproj]
34-
indent_style = space
35-
indent_size = 2
36-
37-
[*.cshtml]
38-
indent_style = space
39-
indent_size = 4
41+
ij_xml_space_inside_empty_tag = true
4042

4143
[*.g]
4244
indent_style = tab

.github/renovate.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@
2121
"groupName": "NUnit"
2222
},
2323
{
24-
"matchPackagePrefixes": [
25-
"Oracle.ManagedDataAccess"
26-
],
27-
"groupName": "Oracle.ManagedDataAccess"
24+
"groupName": "Oracle.ManagedDataAccess",
25+
"matchPackageNames": [
26+
"Oracle.ManagedDataAccess{/,}**"
27+
]
2828
},
2929
{
30-
"matchPackagePrefixes": [
31-
"NHibernate.Caches"
32-
],
33-
"groupName": "NHibernate.Caches"
30+
"groupName": "NHibernate.Caches",
31+
"matchPackageNames": [
32+
"NHibernate.Caches{/,}**"
33+
]
3434
}
3535
]
3636
}

.github/workflows/GenerateAsyncCode.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,23 @@ on:
55
paths:
66
- '**.cs'
77

8-
permissions: {}
8+
permissions:
9+
contents: write
910

1011
jobs:
1112
generate-async:
1213
runs-on: ubuntu-latest
1314

1415
steps:
15-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1617
with:
1718
ref: ${{ github.event.pull_request.head.ref }}
1819
repository: ${{ github.event.pull_request.head.repo.full_name }}
19-
token: ${{ secrets.NHIBERNATE_BOT_TOKEN }}
2020

2121
- name: Setup .NET
22-
uses: actions/setup-dotnet@v3
22+
uses: actions/setup-dotnet@v4
2323
with:
24-
dotnet-version: 6.0.x
24+
dotnet-version: 8.0.x
2525

2626
- name: Generate Async code
2727
run: |

.github/workflows/NetCoreTests.yml

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,51 +7,71 @@ jobs:
77
strategy:
88
fail-fast: false
99
matrix:
10+
DB: [SQLite]
11+
OS: [ubuntu-latest, windows-latest, macos-13]
1012
include:
1113
- DB: SqlServer2008
1214
CONNECTION_STRING: "Server=localhost;initial catalog=nhibernate;User Id=sa;Password=P@ssw0rd;packet size=4096;"
15+
OS: ubuntu-latest
1316
DB_INIT: |
1417
docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=P@ssw0rd" -e "MSSQL_PID=Express" -p 1433:1433 -d --name sqlexpress mcr.microsoft.com/mssql/server:2019-latest;
1518
- DB: SqlServer2008-MicrosoftDataSqlClientDriver
1619
CONNECTION_STRING: "Server=localhost;initial catalog=nhibernate;User Id=sa;Password=P@ssw0rd;packet size=4096;"
20+
OS: ubuntu-latest
1721
DB_INIT: |
1822
docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=P@ssw0rd" -e "MSSQL_PID=Express" -p 1433:1433 -d --name sqlexpress mcr.microsoft.com/mssql/server:2019-latest;
1923
- DB: PostgreSQL
2024
CONNECTION_STRING: "Host=localhost;Username=nhibernate;Password=nhibernate;Database=nhibernate;Enlist=true;"
25+
OS: ubuntu-latest
2126
DB_INIT: |
22-
docker run -d -e POSTGRES_USER=nhibernate -e POSTGRES_PASSWORD=nhibernate -e POSTGRES_DB=nhibernate -p 5432:5432 postgres:13
27+
docker run -d -e POSTGRES_USER=nhibernate -e POSTGRES_PASSWORD=nhibernate -e POSTGRES_DB=nhibernate -p 5432:5432 postgres:13
28+
- DB: PostgreSQL
29+
CONNECTION_STRING: "Host=localhost;Username=postgres;Password=nhibernate;Database=nhibernate;Enlist=true;"
30+
OS: windows-latest
31+
DB_INIT: |
32+
choco install postgresql13 --no-progress --params '/Password:nhibernate'
33+
Add-Content -Path 'C:\Program Files\PostgreSQL\13\data\postgresql.conf' -Value "`r`nmax_prepared_transactions = 100"
34+
Start-Service 'postgresql-x64-13'
2335
- DB: Firebird
2436
CONNECTION_STRING: "DataSource=localhost;Database=nhibernate;User=SYSDBA;Password=nhibernate;charset=utf8;"
37+
OS: ubuntu-latest
2538
DB_INIT: |
2639
docker run --name firebird -e EnableWireCrypt=true -e FIREBIRD_USER=nhibernate -e FIREBIRD_PASSWORD=nhibernate -e ISC_PASSWORD=nhibernate -e FIREBIRD_DATABASE=nhibernate -p 3050:3050 -d jacobalberty/firebird:v3.0
2740
- DB: Firebird4
2841
CONNECTION_STRING: "DataSource=localhost;Database=nhibernate;User=SYSDBA;Password=nhibernate;charset=utf8;"
42+
OS: ubuntu-latest
2943
DB_INIT: |
3044
docker run --name firebird -e EnableWireCrypt=true -e FIREBIRD_USER=nhibernate -e FIREBIRD_PASSWORD=nhibernate -e ISC_PASSWORD=nhibernate -e FIREBIRD_DATABASE=nhibernate -p 3050:3050 -d jacobalberty/firebird:v4.0
3145
- DB: MySQL
3246
CONNECTION_STRING: "Server=localhost;Uid=root;Password=nhibernate;Database=nhibernate;Old Guids=True;SslMode=none;"
47+
OS: ubuntu-latest
3348
DB_INIT: |
3449
sudo service mysql stop
3550
docker run --name mysql -e MYSQL_ROOT_PASSWORD=nhibernate -e MYSQL_USER=nhibernate -e MYSQL_PASSWORD=nhibernate -e MYSQL_DATABASE=nhibernate -p 3306:3306 --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 -d mysql:5.7 mysqld --lower_case_table_names=1 --character-set-server=utf8 --collation-server=utf8_general_ci
3651
- DB: Oracle
3752
CONNECTION_STRING: "User ID=nhibernate;Password=nhibernate;Metadata Pooling=false;Self Tuning=false;Data Source=(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XEPDB1)))"
53+
OS: ubuntu-latest
3854
DB_INIT: |
3955
docker run -d -p 1521:1521 -e APP_USER=nhibernate -e APP_USER_PASSWORD=nhibernate -e ORACLE_PASSWORD=nhibernate gvenzl/oracle-xe:21-slim
40-
- DB: SQLite
41-
runs-on: ubuntu-latest
56+
runs-on: ${{matrix.OS}}
4257
continue-on-error: ${{matrix.ALLOW_FAILURE == true}}
4358
env:
4459
LANG: en-US.UTF-8 #default POSIX locale doesn't support ignore case comparisons
45-
name: ${{matrix.DB}}
60+
name: ${{matrix.DB}} - ${{matrix.OS}}
4661

4762
steps:
4863
- name: Set up ${{matrix.DB}}
4964
run: ${{matrix.DB_INIT}}
50-
- uses: actions/checkout@v3
51-
- name: Setup .NET
52-
uses: actions/setup-dotnet@v3
65+
66+
- name: Set up .NET
67+
uses: actions/setup-dotnet@v4
68+
with:
69+
dotnet-version: 8.0.x
70+
71+
- name: Checkout
72+
uses: actions/checkout@v4
5373
with:
54-
dotnet-version: 6.0.x
74+
show-progress: false
5575

5676
- name: Build and Test
5777
run: |

SECURITY.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
| Version | Supported |
6+
| ------- | ------------------ |
7+
| 5.5.x | :white_check_mark: |
8+
| 5.4.x | :white_check_mark: |
9+
| < 5.4 | :x: |
10+
11+
## Reporting a Vulnerability
12+
13+
**Please do NOT report security vulnerabilities through public GitHub issues.**
14+
15+
Instead, please submit vulnerabilities using this [form](https://github.com/nhibernate/nhibernate-core/security/advisories/new).
16+
If the issue is confirmed, we will try to release a patch version as soon as possible depending on complexity.

ShowBuildMenu.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ testSetupMenu() {
172172
}
173173

174174
testRun(){
175-
dotnet test ./src/NHibernate.Test/NHibernate.Test.csproj -f net6.0
176-
dotnet test ./src/NHibernate.Test.VisualBasic/NHibernate.Test.VisualBasic.vbproj -f net6.0
175+
dotnet test ./src/NHibernate.Test/NHibernate.Test.csproj -f net8.0
176+
dotnet test ./src/NHibernate.Test.VisualBasic/NHibernate.Test.VisualBasic.vbproj -f net8.0
177177
mainMenu
178178
}
179179

Tools/BuildTool/BuildTool.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
</PropertyGroup>
66
</Project>

Tools/packages.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</ItemGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Include="NUnit.Console" Version="3.16.3" />
14+
<PackageReference Include="NUnit.Console" Version="3.18.1" />
1515
</ItemGroup>
1616

1717
</Project>

appveyor.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,10 @@ environment:
66
CONNECTION_STRING: Server=(local)\SQL2017;User ID=sa;Password=Password12!;initial catalog=nhibernate;
77
- DB: SqlServer2008-MicrosoftDataSqlClientDriver
88
CONNECTION_STRING: Server=(local)\SQL2017;User ID=sa;Password=Password12!;initial catalog=nhibernate;
9-
- DB: PostgreSQL
10-
CONNECTION_STRING: Host=localhost;Port=5432;Username=postgres;Password=Password12!;Database=nhibernate;Enlist=true;
119
- DB: Firebird
1210
- DB: Firebird4
1311
- DB: MySQL
1412
CONNECTION_STRING: Server=127.0.0.1;Uid=root;Pwd=Password12!;Database=nhibernate;Old Guids=True;SslMode=none;CharSet=utf8;
15-
- DB: SQLite
1613
init:
1714
# Required for having windows endlines in sources zip
1815
- git config --global core.autocrlf true
@@ -63,17 +60,12 @@ before_test:
6360
Pop-Location
6461
}
6562
'MySQL' {
66-
Start-Service 'MySQL57'
63+
Start-Service 'MySQL80'
6764
# Create nhibernate database (not handled by NHibernate.TestDatabaseSetup.dll)
6865
$env:MYSQL_PWD = 'Password12!'
69-
& 'C:\Program Files\MySQL\MySQL Server 5.7\bin\mysql' -e 'CREATE DATABASE nhibernate CHARACTER SET utf8 COLLATE utf8_general_ci;' --user=root
66+
& 'C:\Program Files\MySQL\MySQL Server 8.0\bin\mysql' -e 'CREATE DATABASE nhibernate CHARACTER SET utf8 COLLATE utf8_general_ci;' --user=root
7067
}
7168
'Odbc' { Start-Service 'MSSQL$SQL2017' }
72-
'PostgreSQL' {
73-
# Enable prepared transactions
74-
Add-Content -Path 'C:\Program Files\PostgreSQL\10\data\postgresql.conf' -Value "`r`nmax_prepared_transactions = 100"
75-
Start-Service 'postgresql-x64-10'
76-
}
7769
'SqlServer2008' { Start-Service 'MSSQL$SQL2017' }
7870
'SqlServer2008-MicrosoftDataSqlClientDriver' { Start-Service 'MSSQL$SQL2017' }
7971
'SqlServer2012' { Start-Service 'MSSQL$SQL2017' }

0 commit comments

Comments
 (0)