Skip to content

Commit f668486

Browse files
Release: 8.0.0 (#73)
* refactor: prefer IAsyncEnumerable<T> over Task<T[]> (#64) * refactor: prefer IAsyncEnumerable<T> over Task<T[]> * Empty commit * Refactor: Deprecate Expressions (#76) * chore: mark expression methods as obsolete * chore: exclude obsolete methods from code coverage * feat: replacement abstractions 1. filter by the lease scope, label, or value 2. filter by the tag label or value 3. sort by the lease scope, label, or value 4. sort by the tag label or value 5. allow an options object to be attached to a query that will allow, among other things, specifying collation for sorting purposes (since value is string and you may want to sort by numeric value) * feat: implement new features in Common library * feat: implement new features in MongoDb library * refactor: update tests for new features and deprecations * bugfix: throw NotSupportedException instead of NotImplementedException * chore: mark obsolete method implementations * refactor: use new enumerate method for projection repository (stop using obsolete method) * Refactor: Envelope Service has too many methods (#78) * Feat: Npgsql (#80) + Implicit Usings * refactor(test): allow each implementation to specify the exact TimeStamp it should expect to get back instead of checking all of the possibilities * feat: Postgres date time column supports microsecond precision * feat: postgres driver * refactor(test): use TestContainers package instead of docker-compose for local and other things for CI * refactor: use getter/setter, remove redundant null assignment * refactor: avoid magic constants * refactor: avoid magic constants * refactor: reduce number of params * refactor: appease codacy * refactor: de-duplicate json envelope logic * refactor: reduce duplication * refactor: reduce duplication? * refactor: reduce duplication * refactor: reduce duplication * refactor: reduce duplication * refactor: remove statics where not needed these classes are only instantiated once, so there's no performance issues with non-static * bugfix: wrong property name * refactor: remove redundant initialization * refactor: reduce duplication * refactor: implicit usings chops off a bunch of lines * feat: record Data Type for Mongo * feat: forgot to implement the postgres provisioner * chore: update a bunch of packages * refactor: codacy suggestion
1 parent 03e1792 commit f668486

File tree

330 files changed

+6916
-2003
lines changed

Some content is hidden

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

330 files changed

+6916
-2003
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,6 @@ jobs:
2121
steps:
2222
- name: Checkout Repository
2323
uses: actions/checkout@v3
24-
- name: Start Redis
25-
uses: supercharge/[email protected]
26-
with:
27-
redis-version: 7.0.2
28-
- name: Start MongoDB
29-
uses: supercharge/[email protected]
30-
with:
31-
mongodb-version: 5.0.9
32-
mongodb-replica-set: entitydb
3324
- name: Install .NET SDK
3425
uses: actions/setup-dotnet@v2
3526
- name: Restore Dependencies

.github/workflows/publish-beta.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,6 @@ jobs:
3737
steps:
3838
- name: Checkout Repository
3939
uses: actions/checkout@v3
40-
- name: Start Redis
41-
uses: supercharge/[email protected]
42-
with:
43-
redis-version: 7.0.2
44-
- name: Start MongoDB
45-
uses: supercharge/[email protected]
46-
with:
47-
mongodb-version: 5.0.9
48-
mongodb-replica-set: entitydb
4940
- name: Install .NET SDK
5041
uses: actions/setup-dotnet@v2
5142
- name: Restore Dependencies

.github/workflows/publish-stable.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,6 @@ jobs:
4545
steps:
4646
- name: Checkout Repository
4747
uses: actions/checkout@v3
48-
- name: Start Redis
49-
uses: supercharge/[email protected]
50-
with:
51-
redis-version: 7.0.2
52-
- name: Start MongoDB
53-
uses: supercharge/[email protected]
54-
with:
55-
mongodb-version: 5.0.9
56-
mongodb-replica-set: entitydb
5748
- name: Install .NET SDK
5849
uses: actions/setup-dotnet@v2
5950
- name: Restore Dependencies

Directory.Build.props

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,10 @@
55
<LangVersion>10.0</LangVersion>
66
<Nullable>enable</Nullable>
77
<EnablePreviewFeatures>True</EnablePreviewFeatures>
8+
<ImplicitUsings>enable</ImplicitUsings>
89
</PropertyGroup>
10+
11+
<ItemGroup>
12+
<PackageReference Include="System.Linq.Async" Version="6.0.1" />
13+
</ItemGroup>
914
</Project>

EntityDb.sln

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ EndProject
2525
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{92484C44-2754-4C1D-BD46-98D83E4020EE}"
2626
ProjectSection(SolutionItems) = preProject
2727
test\Directory.Build.props = test\Directory.Build.props
28-
test\docker-compose.yml = test\docker-compose.yml
2928
EndProjectSection
3029
EndProject
3130
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EntityDb.Common.Tests", "test\EntityDb.Common.Tests\EntityDb.Common.Tests.csproj", "{CF316519-525E-4A67-BF12-1FDDF802B878}"
@@ -42,7 +41,15 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
4241
global.json = global.json
4342
EndProjectSection
4443
EndProject
45-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EntityDb.InMemory", "src\EntityDb.InMemory\EntityDb.InMemory.csproj", "{31C5BEDB-9B04-4FE4-9AF5-AE682C0E7643}"
44+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EntityDb.InMemory", "src\EntityDb.InMemory\EntityDb.InMemory.csproj", "{31C5BEDB-9B04-4FE4-9AF5-AE682C0E7643}"
45+
EndProject
46+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EntityDb.Npgsql", "src\EntityDb.Npgsql\EntityDb.Npgsql.csproj", "{2AADF21D-4F26-4BD6-852A-B28208863FDD}"
47+
EndProject
48+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EntityDb.Npgsql.Provisioner", "src\EntityDb.Npgsql.Provisioner\EntityDb.Npgsql.Provisioner.csproj", "{282DFD9B-14E4-4339-B55A-3567E128FF1B}"
49+
EndProject
50+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EntityDb.SqlDb", "src\EntityDb.SqlDb\EntityDb.SqlDb.csproj", "{F2491666-31D1-47B5-A493-F25E167D1FDF}"
51+
EndProject
52+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EntityDb.Json", "src\EntityDb.Json\EntityDb.Json.csproj", "{4936FFE0-98E5-43A2-89C9-0415A13CAA9B}"
4653
EndProject
4754
Global
4855
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -98,6 +105,22 @@ Global
98105
{31C5BEDB-9B04-4FE4-9AF5-AE682C0E7643}.Debug|Any CPU.Build.0 = Debug|Any CPU
99106
{31C5BEDB-9B04-4FE4-9AF5-AE682C0E7643}.Release|Any CPU.ActiveCfg = Release|Any CPU
100107
{31C5BEDB-9B04-4FE4-9AF5-AE682C0E7643}.Release|Any CPU.Build.0 = Release|Any CPU
108+
{2AADF21D-4F26-4BD6-852A-B28208863FDD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
109+
{2AADF21D-4F26-4BD6-852A-B28208863FDD}.Debug|Any CPU.Build.0 = Debug|Any CPU
110+
{2AADF21D-4F26-4BD6-852A-B28208863FDD}.Release|Any CPU.ActiveCfg = Release|Any CPU
111+
{2AADF21D-4F26-4BD6-852A-B28208863FDD}.Release|Any CPU.Build.0 = Release|Any CPU
112+
{282DFD9B-14E4-4339-B55A-3567E128FF1B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
113+
{282DFD9B-14E4-4339-B55A-3567E128FF1B}.Debug|Any CPU.Build.0 = Debug|Any CPU
114+
{282DFD9B-14E4-4339-B55A-3567E128FF1B}.Release|Any CPU.ActiveCfg = Release|Any CPU
115+
{282DFD9B-14E4-4339-B55A-3567E128FF1B}.Release|Any CPU.Build.0 = Release|Any CPU
116+
{F2491666-31D1-47B5-A493-F25E167D1FDF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
117+
{F2491666-31D1-47B5-A493-F25E167D1FDF}.Debug|Any CPU.Build.0 = Debug|Any CPU
118+
{F2491666-31D1-47B5-A493-F25E167D1FDF}.Release|Any CPU.ActiveCfg = Release|Any CPU
119+
{F2491666-31D1-47B5-A493-F25E167D1FDF}.Release|Any CPU.Build.0 = Release|Any CPU
120+
{4936FFE0-98E5-43A2-89C9-0415A13CAA9B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
121+
{4936FFE0-98E5-43A2-89C9-0415A13CAA9B}.Debug|Any CPU.Build.0 = Debug|Any CPU
122+
{4936FFE0-98E5-43A2-89C9-0415A13CAA9B}.Release|Any CPU.ActiveCfg = Release|Any CPU
123+
{4936FFE0-98E5-43A2-89C9-0415A13CAA9B}.Release|Any CPU.Build.0 = Release|Any CPU
101124
EndGlobalSection
102125
GlobalSection(SolutionProperties) = preSolution
103126
HideSolutionNode = FALSE
@@ -115,6 +138,10 @@ Global
115138
{B8B6E5A5-5154-4629-9A38-9F0E65575F30} = {92484C44-2754-4C1D-BD46-98D83E4020EE}
116139
{FA2AD2E9-84DA-4667-BF46-140B0B050563} = {92484C44-2754-4C1D-BD46-98D83E4020EE}
117140
{31C5BEDB-9B04-4FE4-9AF5-AE682C0E7643} = {ABACFBCC-B59F-4616-B6CC-99C37AEC8960}
141+
{2AADF21D-4F26-4BD6-852A-B28208863FDD} = {ABACFBCC-B59F-4616-B6CC-99C37AEC8960}
142+
{282DFD9B-14E4-4339-B55A-3567E128FF1B} = {ABACFBCC-B59F-4616-B6CC-99C37AEC8960}
143+
{F2491666-31D1-47B5-A493-F25E167D1FDF} = {ABACFBCC-B59F-4616-B6CC-99C37AEC8960}
144+
{4936FFE0-98E5-43A2-89C9-0415A13CAA9B} = {ABACFBCC-B59F-4616-B6CC-99C37AEC8960}
118145
EndGlobalSection
119146
GlobalSection(ExtensibilityGlobals) = postSolution
120147
SolutionGuid = {E9D288EE-9351-4018-ABE8-B0968AEB0465}

src/EntityDb.Abstractions/Agents/IAgentAccessor.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
using System.Threading;
2-
using System.Threading.Tasks;
3-
4-
namespace EntityDb.Abstractions.Agents;
1+
namespace EntityDb.Abstractions.Agents;
52

63
/// <summary>
74
/// Represents a type that can access an instance of <see cref="IAgent" />.

src/EntityDb.Abstractions/Agents/IAgentSignatureAugmenter.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
using System.Collections.Generic;
2-
using System.Threading;
3-
using System.Threading.Tasks;
4-
51
namespace EntityDb.Abstractions.Agents;
62

73
/// <summary>

src/EntityDb.Abstractions/Disposables/IDisposableResource.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using System;
2-
3-
namespace EntityDb.Abstractions.Disposables;
1+
namespace EntityDb.Abstractions.Disposables;
42

53
/// <summary>
64
/// Marks a resource as disposable and provides a default implementation.

src/EntityDb.Abstractions/Entities/IEntityRepository.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
using EntityDb.Abstractions.Snapshots;
33
using EntityDb.Abstractions.Transactions;
44
using EntityDb.Abstractions.ValueObjects;
5-
using System;
65
using System.Diagnostics.CodeAnalysis;
7-
using System.Threading;
8-
using System.Threading.Tasks;
96

107
namespace EntityDb.Abstractions.Entities;
118

src/EntityDb.Abstractions/Entities/IEntityRepositoryFactory.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
using System.Threading;
2-
using System.Threading.Tasks;
3-
41
namespace EntityDb.Abstractions.Entities;
52

63
/// <summary>

0 commit comments

Comments
 (0)