Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .idea/.idea.DatabaseTesting/.idea/sonarlint.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/.idea.DatabaseTesting/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 29 additions & 8 deletions DatabaseTesting.sln
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AStar.Dev.Technical.Debt.Re
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AStar.Dev.Utilities", "support\AStar.Dev.Utilities\AStar.Dev.Utilities.csproj", "{28720605-9CA9-4A33-BB00-655F4B76CA19}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp1", "support\ConsoleApp1\ConsoleApp1.csproj", "{8DAFC3FE-4221-4D86-8880-2DD29CA7BA68}"
EndProject
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}"
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}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DbContextHelpers", "support\DbContextHelpers\DbContextHelpers.csproj", "{FE38F9CD-8573-44D1-A03F-73D318B6E86D}"
EndProject
Expand Down Expand Up @@ -38,6 +36,14 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AStar.Dev.Infrastructure",
EndProject
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}"
EndProject
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}"
EndProject
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}"
EndProject
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}"
EndProject
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}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -52,10 +58,6 @@ Global
{28720605-9CA9-4A33-BB00-655F4B76CA19}.Debug|Any CPU.Build.0 = Debug|Any CPU
{28720605-9CA9-4A33-BB00-655F4B76CA19}.Release|Any CPU.ActiveCfg = Release|Any CPU
{28720605-9CA9-4A33-BB00-655F4B76CA19}.Release|Any CPU.Build.0 = Release|Any CPU
{8DAFC3FE-4221-4D86-8880-2DD29CA7BA68}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8DAFC3FE-4221-4D86-8880-2DD29CA7BA68}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8DAFC3FE-4221-4D86-8880-2DD29CA7BA68}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8DAFC3FE-4221-4D86-8880-2DD29CA7BA68}.Release|Any CPU.Build.0 = Release|Any CPU
{2860766A-6251-4874-9535-199ED5E29AA0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2860766A-6251-4874-9535-199ED5E29AA0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2860766A-6251-4874-9535-199ED5E29AA0}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand All @@ -72,6 +74,22 @@ Global
{626B3E85-6C5D-4D8B-96BB-BF2D375326CA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{626B3E85-6C5D-4D8B-96BB-BF2D375326CA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{626B3E85-6C5D-4D8B-96BB-BF2D375326CA}.Release|Any CPU.Build.0 = Release|Any CPU
{1EC059E7-7C8D-4492-8C07-30BD79AEE465}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1EC059E7-7C8D-4492-8C07-30BD79AEE465}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1EC059E7-7C8D-4492-8C07-30BD79AEE465}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1EC059E7-7C8D-4492-8C07-30BD79AEE465}.Release|Any CPU.Build.0 = Release|Any CPU
{019990B2-EFCD-4FB1-9FD1-CD98CCBFF670}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{019990B2-EFCD-4FB1-9FD1-CD98CCBFF670}.Debug|Any CPU.Build.0 = Debug|Any CPU
{019990B2-EFCD-4FB1-9FD1-CD98CCBFF670}.Release|Any CPU.ActiveCfg = Release|Any CPU
{019990B2-EFCD-4FB1-9FD1-CD98CCBFF670}.Release|Any CPU.Build.0 = Release|Any CPU
{55EB2B02-1528-45B8-A460-93F269527272}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{55EB2B02-1528-45B8-A460-93F269527272}.Debug|Any CPU.Build.0 = Debug|Any CPU
{55EB2B02-1528-45B8-A460-93F269527272}.Release|Any CPU.ActiveCfg = Release|Any CPU
{55EB2B02-1528-45B8-A460-93F269527272}.Release|Any CPU.Build.0 = Release|Any CPU
{3C872AF9-A2A3-4CB8-B7BB-FC1BC3B57A82}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3C872AF9-A2A3-4CB8-B7BB-FC1BC3B57A82}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3C872AF9-A2A3-4CB8-B7BB-FC1BC3B57A82}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3C872AF9-A2A3-4CB8-B7BB-FC1BC3B57A82}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -85,9 +103,12 @@ Global
{2860766A-6251-4874-9535-199ED5E29AA0} = {D96E7D57-B3CF-4792-8532-59F03453A8B6}
{08DE9921-9593-4530-B062-84A41A6FAA90} = {F06BC983-3361-41B2-B64F-7A77A2E32782}
{28720605-9CA9-4A33-BB00-655F4B76CA19} = {F06BC983-3361-41B2-B64F-7A77A2E32782}
{8DAFC3FE-4221-4D86-8880-2DD29CA7BA68} = {F06BC983-3361-41B2-B64F-7A77A2E32782}
{FE38F9CD-8573-44D1-A03F-73D318B6E86D} = {F06BC983-3361-41B2-B64F-7A77A2E32782}
{C00B2A62-E46E-4F6E-BC8A-39088261A17E} = {D61F13DC-3A32-42BE-8687-F795D7332A51}
{626B3E85-6C5D-4D8B-96BB-BF2D375326CA} = {D61F13DC-3A32-42BE-8687-F795D7332A51}
{1EC059E7-7C8D-4492-8C07-30BD79AEE465} = {D96E7D57-B3CF-4792-8532-59F03453A8B6}
{019990B2-EFCD-4FB1-9FD1-CD98CCBFF670} = {D96E7D57-B3CF-4792-8532-59F03453A8B6}
{55EB2B02-1528-45B8-A460-93F269527272} = {D96E7D57-B3CF-4792-8532-59F03453A8B6}
{3C872AF9-A2A3-4CB8-B7BB-FC1BC3B57A82} = {D96E7D57-B3CF-4792-8532-59F03453A8B6}
EndGlobalSection
EndGlobal

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
using AStar.Dev.Infrastructure.FilesDb.Models;
using AStar.Dev.Infrastructure.Data.Configurations;
using AStar.Dev.Infrastructure.FilesDb.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

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

internal sealed class DeletionStatusConfiguration : IComplexPropertyConfiguration<DeletionStatus>
{
public ComplexPropertyBuilder<DeletionStatus> Configure(ComplexPropertyBuilder<DeletionStatus> builder)
public void Configure(ComplexPropertyBuilder<DeletionStatus> builder)
{
builder
.Property(deletionStatus => deletionStatus.HardDeletePending)
.HasColumnName("HardDeletePending")
.HasColumnType("datetimeoffset");

builder
.Property(deletionStatus => deletionStatus.SoftDeletePending)
.HasColumnName("SoftDeletePending")
Expand All @@ -22,7 +23,5 @@ public ComplexPropertyBuilder<DeletionStatus> Configure(ComplexPropertyBuilder<D
.Property(deletionStatus => deletionStatus.SoftDeleted)
.HasColumnName("SoftDeleted")
.HasColumnType("datetimeoffset");

return builder;
}
}
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
using AStar.Dev.Infrastructure.FilesDb.Models;
using AStar.Dev.Infrastructure.Data.Configurations;
using AStar.Dev.Infrastructure.FilesDb.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

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

internal sealed class DirectoryNameConfiguration : IComplexPropertyConfiguration<DirectoryName>
{
public ComplexPropertyBuilder<DirectoryName> Configure(ComplexPropertyBuilder<DirectoryName> builder)
public void Configure(ComplexPropertyBuilder<DirectoryName> builder)
{
builder.Property(directoryName => directoryName.Value)
.HasColumnName("DirectoryName")
.HasColumnType("nvarchar(256)");

return builder;
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using AStar.Dev.Infrastructure.FilesDb.Models;
using AStar.Dev.Infrastructure.Data.Configurations;
using AStar.Dev.Infrastructure.FilesDb.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using AStar.Dev.Infrastructure.Data.Configurations;
using AStar.Dev.Infrastructure.FilesDb.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
Expand All @@ -6,11 +7,9 @@ namespace AStar.Dev.Infrastructure.FilesDb.Data.Configurations;

internal sealed class EventTypeConfiguration : IComplexPropertyConfiguration<EventType>
{
public ComplexPropertyBuilder<EventType> Configure(ComplexPropertyBuilder<EventType> builder)
public void Configure(ComplexPropertyBuilder<EventType> builder)
{
builder.Property(eventType => eventType.Value).HasColumnName("EventType").IsRequired();
builder.Property(eventType => eventType.Name).HasColumnName("EventName").IsRequired();

return builder;
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using AStar.Dev.Infrastructure.FilesDb.Models;
using AStar.Dev.Infrastructure.Data.Configurations;
using AStar.Dev.Infrastructure.FilesDb.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using AStar.Dev.Infrastructure.Data.Configurations;
using AStar.Dev.Infrastructure.FilesDb.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
Expand All @@ -6,11 +7,9 @@ namespace AStar.Dev.Infrastructure.FilesDb.Data.Configurations;

internal sealed class ImageDetailConfiguration : IComplexPropertyConfiguration<ImageDetail>
{
public ComplexPropertyBuilder<ImageDetail> Configure(ComplexPropertyBuilder<ImageDetail> builder)
public void Configure(ComplexPropertyBuilder<ImageDetail> builder)
{
builder.Property(image => image.Width).HasColumnName("ImageWidth");
builder.Property(image => image.Height).HasColumnName("ImageHeight");

return builder;
}
}
Loading