Skip to content

Commit 6ed5d6f

Browse files
authored
Merge pull request #2 from astar-development/features/continue-recreating-dbcontext-extensions
Features/continue recreating dbcontext extensions
2 parents d8d84be + 6c87a61 commit 6ed5d6f

File tree

73 files changed

+1078
-66413
lines changed

Some content is hidden

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

73 files changed

+1078
-66413
lines changed

.idea/.idea.DatabaseTesting/.idea/sonarlint.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.idea.DatabaseTesting/.idea/vcs.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

DatabaseTesting.sln

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AStar.Dev.Technical.Debt.Re
77
EndProject
88
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AStar.Dev.Utilities", "support\AStar.Dev.Utilities\AStar.Dev.Utilities.csproj", "{28720605-9CA9-4A33-BB00-655F4B76CA19}"
99
EndProject
10-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "support\ConsoleApp1\ConsoleApp1.csproj", "{8DAFC3FE-4221-4D86-8880-2DD29CA7BA68}"
11-
EndProject
12-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AStar.Dev.Infrastructure.FilesDb.Tests.Integration", "test\AStar.Dev.Infrastructure.FilesDb.Tests.Unit\AStar.Dev.Infrastructure.FilesDb.Tests.Integration.csproj", "{2860766A-6251-4874-9535-199ED5E29AA0}"
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AStar.Dev.Infrastructure.FilesDb.Tests.Integration", "test\AStar.Dev.Infrastructure.FilesDb.Tests.Integration\AStar.Dev.Infrastructure.FilesDb.Tests.Integration.csproj", "{2860766A-6251-4874-9535-199ED5E29AA0}"
1311
EndProject
1412
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DbContextHelpers", "support\DbContextHelpers\DbContextHelpers.csproj", "{FE38F9CD-8573-44D1-A03F-73D318B6E86D}"
1513
EndProject
@@ -38,6 +36,14 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AStar.Dev.Infrastructure",
3836
EndProject
3937
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AStar.Dev.Infrastructure.FilesDb", "src\AStar.Dev.Infrastructure.FilesDb\AStar.Dev.Infrastructure.FilesDb.csproj", "{626B3E85-6C5D-4D8B-96BB-BF2D375326CA}"
4038
EndProject
39+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AStar.Dev.Infrastructure.Tests.Unit", "test\AStar.Dev.Infrastructure.Tests.Unit\AStar.Dev.Infrastructure.Tests.Unit.csproj", "{1EC059E7-7C8D-4492-8C07-30BD79AEE465}"
40+
EndProject
41+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AStar.Dev.Infrastructure.FilesDb.Tests.Unit", "test\AStar.Dev.Infrastructure.FilesDb.Tests.Unit\AStar.Dev.Infrastructure.FilesDb.Tests.Unit.csproj", "{019990B2-EFCD-4FB1-9FD1-CD98CCBFF670}"
42+
EndProject
43+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AStar.Dev.Utilities.Tests.Unit", "test\AStar.Dev.Utilities.Tests.Unit\AStar.Dev.Utilities.Tests.Unit.csproj", "{55EB2B02-1528-45B8-A460-93F269527272}"
44+
EndProject
45+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AStar.Dev.Technical.Debt.Reporting.Tests.Unit", "test\AStar.Dev.Technical.Debt.Reporting.Tests.Unit\AStar.Dev.Technical.Debt.Reporting.Tests.Unit.csproj", "{3C872AF9-A2A3-4CB8-B7BB-FC1BC3B57A82}"
46+
EndProject
4147
Global
4248
GlobalSection(SolutionConfigurationPlatforms) = preSolution
4349
Debug|Any CPU = Debug|Any CPU
@@ -52,10 +58,6 @@ Global
5258
{28720605-9CA9-4A33-BB00-655F4B76CA19}.Debug|Any CPU.Build.0 = Debug|Any CPU
5359
{28720605-9CA9-4A33-BB00-655F4B76CA19}.Release|Any CPU.ActiveCfg = Release|Any CPU
5460
{28720605-9CA9-4A33-BB00-655F4B76CA19}.Release|Any CPU.Build.0 = Release|Any CPU
55-
{8DAFC3FE-4221-4D86-8880-2DD29CA7BA68}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
56-
{8DAFC3FE-4221-4D86-8880-2DD29CA7BA68}.Debug|Any CPU.Build.0 = Debug|Any CPU
57-
{8DAFC3FE-4221-4D86-8880-2DD29CA7BA68}.Release|Any CPU.ActiveCfg = Release|Any CPU
58-
{8DAFC3FE-4221-4D86-8880-2DD29CA7BA68}.Release|Any CPU.Build.0 = Release|Any CPU
5961
{2860766A-6251-4874-9535-199ED5E29AA0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
6062
{2860766A-6251-4874-9535-199ED5E29AA0}.Debug|Any CPU.Build.0 = Debug|Any CPU
6163
{2860766A-6251-4874-9535-199ED5E29AA0}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -72,6 +74,22 @@ Global
7274
{626B3E85-6C5D-4D8B-96BB-BF2D375326CA}.Debug|Any CPU.Build.0 = Debug|Any CPU
7375
{626B3E85-6C5D-4D8B-96BB-BF2D375326CA}.Release|Any CPU.ActiveCfg = Release|Any CPU
7476
{626B3E85-6C5D-4D8B-96BB-BF2D375326CA}.Release|Any CPU.Build.0 = Release|Any CPU
77+
{1EC059E7-7C8D-4492-8C07-30BD79AEE465}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
78+
{1EC059E7-7C8D-4492-8C07-30BD79AEE465}.Debug|Any CPU.Build.0 = Debug|Any CPU
79+
{1EC059E7-7C8D-4492-8C07-30BD79AEE465}.Release|Any CPU.ActiveCfg = Release|Any CPU
80+
{1EC059E7-7C8D-4492-8C07-30BD79AEE465}.Release|Any CPU.Build.0 = Release|Any CPU
81+
{019990B2-EFCD-4FB1-9FD1-CD98CCBFF670}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
82+
{019990B2-EFCD-4FB1-9FD1-CD98CCBFF670}.Debug|Any CPU.Build.0 = Debug|Any CPU
83+
{019990B2-EFCD-4FB1-9FD1-CD98CCBFF670}.Release|Any CPU.ActiveCfg = Release|Any CPU
84+
{019990B2-EFCD-4FB1-9FD1-CD98CCBFF670}.Release|Any CPU.Build.0 = Release|Any CPU
85+
{55EB2B02-1528-45B8-A460-93F269527272}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
86+
{55EB2B02-1528-45B8-A460-93F269527272}.Debug|Any CPU.Build.0 = Debug|Any CPU
87+
{55EB2B02-1528-45B8-A460-93F269527272}.Release|Any CPU.ActiveCfg = Release|Any CPU
88+
{55EB2B02-1528-45B8-A460-93F269527272}.Release|Any CPU.Build.0 = Release|Any CPU
89+
{3C872AF9-A2A3-4CB8-B7BB-FC1BC3B57A82}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
90+
{3C872AF9-A2A3-4CB8-B7BB-FC1BC3B57A82}.Debug|Any CPU.Build.0 = Debug|Any CPU
91+
{3C872AF9-A2A3-4CB8-B7BB-FC1BC3B57A82}.Release|Any CPU.ActiveCfg = Release|Any CPU
92+
{3C872AF9-A2A3-4CB8-B7BB-FC1BC3B57A82}.Release|Any CPU.Build.0 = Release|Any CPU
7593
EndGlobalSection
7694
GlobalSection(SolutionProperties) = preSolution
7795
HideSolutionNode = FALSE
@@ -85,9 +103,12 @@ Global
85103
{2860766A-6251-4874-9535-199ED5E29AA0} = {D96E7D57-B3CF-4792-8532-59F03453A8B6}
86104
{08DE9921-9593-4530-B062-84A41A6FAA90} = {F06BC983-3361-41B2-B64F-7A77A2E32782}
87105
{28720605-9CA9-4A33-BB00-655F4B76CA19} = {F06BC983-3361-41B2-B64F-7A77A2E32782}
88-
{8DAFC3FE-4221-4D86-8880-2DD29CA7BA68} = {F06BC983-3361-41B2-B64F-7A77A2E32782}
89106
{FE38F9CD-8573-44D1-A03F-73D318B6E86D} = {F06BC983-3361-41B2-B64F-7A77A2E32782}
90107
{C00B2A62-E46E-4F6E-BC8A-39088261A17E} = {D61F13DC-3A32-42BE-8687-F795D7332A51}
91108
{626B3E85-6C5D-4D8B-96BB-BF2D375326CA} = {D61F13DC-3A32-42BE-8687-F795D7332A51}
109+
{1EC059E7-7C8D-4492-8C07-30BD79AEE465} = {D96E7D57-B3CF-4792-8532-59F03453A8B6}
110+
{019990B2-EFCD-4FB1-9FD1-CD98CCBFF670} = {D96E7D57-B3CF-4792-8532-59F03453A8B6}
111+
{55EB2B02-1528-45B8-A460-93F269527272} = {D96E7D57-B3CF-4792-8532-59F03453A8B6}
112+
{3C872AF9-A2A3-4CB8-B7BB-FC1BC3B57A82} = {D96E7D57-B3CF-4792-8532-59F03453A8B6}
92113
EndGlobalSection
93114
EndGlobal

src/AStar.Dev.Infrastructure.FilesDb/AStar.Dev.Infrastructure.FilesDb.xml

Lines changed: 0 additions & 75 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/AStar.Dev.Infrastructure.FilesDb/Data/Common/ComplexPropertyBuilderConfiguration.cs

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/AStar.Dev.Infrastructure.FilesDb/Data/Common/IComplexPropertyConfiguration.cs

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1-
using AStar.Dev.Infrastructure.FilesDb.Models;
1+
using AStar.Dev.Infrastructure.Data.Configurations;
2+
using AStar.Dev.Infrastructure.FilesDb.Models;
23
using Microsoft.EntityFrameworkCore;
34
using Microsoft.EntityFrameworkCore.Metadata.Builders;
45

56
namespace AStar.Dev.Infrastructure.FilesDb.Data.Configurations;
67

78
internal sealed class DeletionStatusConfiguration : IComplexPropertyConfiguration<DeletionStatus>
89
{
9-
public ComplexPropertyBuilder<DeletionStatus> Configure(ComplexPropertyBuilder<DeletionStatus> builder)
10+
public void Configure(ComplexPropertyBuilder<DeletionStatus> builder)
1011
{
1112
builder
1213
.Property(deletionStatus => deletionStatus.HardDeletePending)
1314
.HasColumnName("HardDeletePending")
1415
.HasColumnType("datetimeoffset");
15-
16+
1617
builder
1718
.Property(deletionStatus => deletionStatus.SoftDeletePending)
1819
.HasColumnName("SoftDeletePending")
@@ -22,7 +23,5 @@ public ComplexPropertyBuilder<DeletionStatus> Configure(ComplexPropertyBuilder<D
2223
.Property(deletionStatus => deletionStatus.SoftDeleted)
2324
.HasColumnName("SoftDeleted")
2425
.HasColumnType("datetimeoffset");
25-
26-
return builder;
2726
}
2827
}
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1-
using AStar.Dev.Infrastructure.FilesDb.Models;
1+
using AStar.Dev.Infrastructure.Data.Configurations;
2+
using AStar.Dev.Infrastructure.FilesDb.Models;
23
using Microsoft.EntityFrameworkCore;
34
using Microsoft.EntityFrameworkCore.Metadata.Builders;
45

56
namespace AStar.Dev.Infrastructure.FilesDb.Data.Configurations;
67

78
internal sealed class DirectoryNameConfiguration : IComplexPropertyConfiguration<DirectoryName>
89
{
9-
public ComplexPropertyBuilder<DirectoryName> Configure(ComplexPropertyBuilder<DirectoryName> builder)
10+
public void Configure(ComplexPropertyBuilder<DirectoryName> builder)
1011
{
1112
builder.Property(directoryName => directoryName.Value)
1213
.HasColumnName("DirectoryName")
1314
.HasColumnType("nvarchar(256)");
14-
15-
return builder;
1615
}
1716
}

src/AStar.Dev.Infrastructure.FilesDb/Data/Configurations/EventConfiguration.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using AStar.Dev.Infrastructure.FilesDb.Models;
1+
using AStar.Dev.Infrastructure.Data.Configurations;
2+
using AStar.Dev.Infrastructure.FilesDb.Models;
23
using Microsoft.EntityFrameworkCore;
34
using Microsoft.EntityFrameworkCore.Metadata.Builders;
45

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using AStar.Dev.Infrastructure.Data.Configurations;
12
using AStar.Dev.Infrastructure.FilesDb.Models;
23
using Microsoft.EntityFrameworkCore;
34
using Microsoft.EntityFrameworkCore.Metadata.Builders;
@@ -6,11 +7,9 @@ namespace AStar.Dev.Infrastructure.FilesDb.Data.Configurations;
67

78
internal sealed class EventTypeConfiguration : IComplexPropertyConfiguration<EventType>
89
{
9-
public ComplexPropertyBuilder<EventType> Configure(ComplexPropertyBuilder<EventType> builder)
10+
public void Configure(ComplexPropertyBuilder<EventType> builder)
1011
{
1112
builder.Property(eventType => eventType.Value).HasColumnName("EventType").IsRequired();
1213
builder.Property(eventType => eventType.Name).HasColumnName("EventName").IsRequired();
13-
14-
return builder;
1514
}
1615
}

0 commit comments

Comments
 (0)