From 9b60e9c72f438be278035381fb857527bddc067c Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Fri, 26 Nov 2021 15:00:20 -0600 Subject: [PATCH] =?UTF-8?q?refactor(svcs):=20=E2=99=BB=20prefer=20default!?= =?UTF-8?q?=20to=20null!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Options/GitOptions.cs | 6 +++--- .../Scheduling/ConfigurationExtensions.cs | 2 +- .../Models/ListDetailsVm.cs | 4 ++-- .../FilterLists.Directory.Api.Contracts/Models/ListVm.cs | 2 +- .../Options/ApiOptions.cs | 2 +- .../Queries/GetLanguages.cs | 4 ++-- .../Queries/GetLicenses.cs | 2 +- .../Queries/GetMaintainers.cs | 2 +- .../Queries/GetSoftware.cs | 2 +- .../Queries/GetSyntaxes.cs | 2 +- .../FilterLists.Directory.Application/Queries/GetTags.cs | 2 +- .../Aggregates/FilterLists/FilterList.cs | 4 ++-- .../Aggregates/FilterLists/FilterListViewUrl.cs | 2 +- .../Aggregates/Licenses/License.cs | 2 +- .../Persistence/Queries/Entities/Dependent.cs | 4 ++-- .../Persistence/Queries/Entities/FilterList.cs | 4 ++-- .../Persistence/Queries/Entities/FilterListLanguage.cs | 4 ++-- .../Persistence/Queries/Entities/FilterListMaintainer.cs | 4 ++-- .../Persistence/Queries/Entities/FilterListSyntax.cs | 4 ++-- .../Persistence/Queries/Entities/FilterListTag.cs | 4 ++-- .../Persistence/Queries/Entities/FilterListViewUrl.cs | 4 ++-- .../Persistence/Queries/Entities/Fork.cs | 4 ++-- .../Persistence/Queries/Entities/Language.cs | 4 ++-- .../Persistence/Queries/Entities/License.cs | 2 +- .../Persistence/Queries/Entities/Maintainer.cs | 2 +- .../Persistence/Queries/Entities/Merge.cs | 4 ++-- .../Persistence/Queries/Entities/Software.cs | 2 +- .../Persistence/Queries/Entities/SoftwareSyntax.cs | 4 ++-- .../Persistence/Queries/Entities/Syntax.cs | 2 +- .../Persistence/Queries/Entities/Tag.cs | 2 +- .../Options/ApplicationInsightsOptions.cs | 2 +- 31 files changed, 47 insertions(+), 47 deletions(-) diff --git a/services/Archival/FilterLists.Archival.Infrastructure/Options/GitOptions.cs b/services/Archival/FilterLists.Archival.Infrastructure/Options/GitOptions.cs index e66886b7f..0aac6da98 100644 --- a/services/Archival/FilterLists.Archival.Infrastructure/Options/GitOptions.cs +++ b/services/Archival/FilterLists.Archival.Infrastructure/Options/GitOptions.cs @@ -4,7 +4,7 @@ internal record GitOptions { public const string Key = "Git"; - public string RepositoryPath { get; init; } = null!; - public string UserName { get; init; } = null!; - public string UserEmail { get; init; } = null!; + public string RepositoryPath { get; init; } = default!; + public string UserName { get; init; } = default!; + public string UserEmail { get; init; } = default!; } diff --git a/services/Archival/FilterLists.Archival.Infrastructure/Scheduling/ConfigurationExtensions.cs b/services/Archival/FilterLists.Archival.Infrastructure/Scheduling/ConfigurationExtensions.cs index 06c0cc9fd..a6231842f 100644 --- a/services/Archival/FilterLists.Archival.Infrastructure/Scheduling/ConfigurationExtensions.cs +++ b/services/Archival/FilterLists.Archival.Infrastructure/Scheduling/ConfigurationExtensions.cs @@ -7,7 +7,7 @@ namespace FilterLists.Archival.Infrastructure.Scheduling; internal static class ConfigurationExtensions { - private static ConnectionMultiplexer _redis = null!; + private static ConnectionMultiplexer _redis = default!; public static void AddScheduling(this IServiceCollection services, IConfiguration configuration) { diff --git a/services/Directory/FilterLists.Directory.Api.Contracts/Models/ListDetailsVm.cs b/services/Directory/FilterLists.Directory.Api.Contracts/Models/ListDetailsVm.cs index e01f8c9bd..3a127952b 100644 --- a/services/Directory/FilterLists.Directory.Api.Contracts/Models/ListDetailsVm.cs +++ b/services/Directory/FilterLists.Directory.Api.Contracts/Models/ListDetailsVm.cs @@ -3,7 +3,7 @@ public record ListDetailsVm { public long Id { get; init; } - public string Name { get; init; } = null!; + public string Name { get; init; } = default!; public string? Description { get; init; } public long? LicenseId { get; init; } public IEnumerable SyntaxIds { get; init; } = new HashSet(); @@ -31,6 +31,6 @@ public record ViewUrlVm { public short SegmentNumber { get; init; } public short Primariness { get; init; } - public Uri Url { get; init; } = null!; + public Uri Url { get; init; } = default!; } } diff --git a/services/Directory/FilterLists.Directory.Api.Contracts/Models/ListVm.cs b/services/Directory/FilterLists.Directory.Api.Contracts/Models/ListVm.cs index f708a758a..8d625261f 100644 --- a/services/Directory/FilterLists.Directory.Api.Contracts/Models/ListVm.cs +++ b/services/Directory/FilterLists.Directory.Api.Contracts/Models/ListVm.cs @@ -3,7 +3,7 @@ public record ListVm { public long Id { get; init; } - public string Name { get; init; } = null!; + public string Name { get; init; } = default!; public string? Description { get; init; } public long? LicenseId { get; init; } public IEnumerable SyntaxIds { get; init; } = new HashSet(); diff --git a/services/Directory/FilterLists.Directory.Api.Contracts/Options/ApiOptions.cs b/services/Directory/FilterLists.Directory.Api.Contracts/Options/ApiOptions.cs index 5ef8e8807..c4179d3e9 100644 --- a/services/Directory/FilterLists.Directory.Api.Contracts/Options/ApiOptions.cs +++ b/services/Directory/FilterLists.Directory.Api.Contracts/Options/ApiOptions.cs @@ -4,5 +4,5 @@ internal record ApiOptions { public const string Key = "Api"; - public string DirectoryHost { get; init; } = null!; + public string DirectoryHost { get; init; } = default!; } diff --git a/services/Directory/FilterLists.Directory.Application/Queries/GetLanguages.cs b/services/Directory/FilterLists.Directory.Application/Queries/GetLanguages.cs index 2ecb56815..b541e64a6 100644 --- a/services/Directory/FilterLists.Directory.Application/Queries/GetLanguages.cs +++ b/services/Directory/FilterLists.Directory.Application/Queries/GetLanguages.cs @@ -47,8 +47,8 @@ public LanguageVmProfile() public record LanguageVm { public long Id { get; init; } - public string Iso6391 { get; init; } = null!; - public string Name { get; init; } = null!; + public string Iso6391 { get; init; } = default!; + public string Name { get; init; } = default!; public IEnumerable FilterListIds { get; init; } = new HashSet(); } } diff --git a/services/Directory/FilterLists.Directory.Application/Queries/GetLicenses.cs b/services/Directory/FilterLists.Directory.Application/Queries/GetLicenses.cs index eadfbeaa0..9357bd83f 100644 --- a/services/Directory/FilterLists.Directory.Application/Queries/GetLicenses.cs +++ b/services/Directory/FilterLists.Directory.Application/Queries/GetLicenses.cs @@ -45,7 +45,7 @@ public LicenseVmProfile() public record LicenseVm { public long Id { get; init; } - public string Name { get; init; } = null!; + public string Name { get; init; } = default!; public Uri? Url { get; init; } public bool PermitsModification { get; init; } public bool PermitsDistribution { get; init; } diff --git a/services/Directory/FilterLists.Directory.Application/Queries/GetMaintainers.cs b/services/Directory/FilterLists.Directory.Application/Queries/GetMaintainers.cs index 5ad602212..220745417 100644 --- a/services/Directory/FilterLists.Directory.Application/Queries/GetMaintainers.cs +++ b/services/Directory/FilterLists.Directory.Application/Queries/GetMaintainers.cs @@ -47,7 +47,7 @@ public MaintainerVmProfile() public record MaintainerVm { public long Id { get; init; } - public string Name { get; init; } = null!; + public string Name { get; init; } = default!; public Uri? Url { get; init; } public string? EmailAddress { get; init; } public string? TwitterHandle { get; init; } diff --git a/services/Directory/FilterLists.Directory.Application/Queries/GetSoftware.cs b/services/Directory/FilterLists.Directory.Application/Queries/GetSoftware.cs index d66134bbc..3b65cbcbd 100644 --- a/services/Directory/FilterLists.Directory.Application/Queries/GetSoftware.cs +++ b/services/Directory/FilterLists.Directory.Application/Queries/GetSoftware.cs @@ -46,7 +46,7 @@ public SoftwareVmProfile() public record SoftwareVm { public long Id { get; init; } - public string Name { get; init; } = null!; + public string Name { get; init; } = default!; public string? Description { get; init; } public Uri? HomeUrl { get; init; } public Uri? DownloadUrl { get; init; } diff --git a/services/Directory/FilterLists.Directory.Application/Queries/GetSyntaxes.cs b/services/Directory/FilterLists.Directory.Application/Queries/GetSyntaxes.cs index 976695ca4..b44a5bcc8 100644 --- a/services/Directory/FilterLists.Directory.Application/Queries/GetSyntaxes.cs +++ b/services/Directory/FilterLists.Directory.Application/Queries/GetSyntaxes.cs @@ -50,7 +50,7 @@ public SyntaxVmProfile() public record SyntaxVm { public long Id { get; init; } - public string Name { get; init; } = null!; + public string Name { get; init; } = default!; public string? Description { get; init; } public Uri? Url { get; init; } public IEnumerable FilterListIds { get; init; } = new HashSet(); diff --git a/services/Directory/FilterLists.Directory.Application/Queries/GetTags.cs b/services/Directory/FilterLists.Directory.Application/Queries/GetTags.cs index 866e9959b..a63f84de1 100644 --- a/services/Directory/FilterLists.Directory.Application/Queries/GetTags.cs +++ b/services/Directory/FilterLists.Directory.Application/Queries/GetTags.cs @@ -47,7 +47,7 @@ public TagVmProfile() public record TagVm { public long Id { get; init; } - public string Name { get; init; } = null!; + public string Name { get; init; } = default!; public string? Description { get; init; } public IEnumerable FilterListIds { get; init; } = new HashSet(); } diff --git a/services/Directory/FilterLists.Directory.Domain/Aggregates/FilterLists/FilterList.cs b/services/Directory/FilterLists.Directory.Domain/Aggregates/FilterLists/FilterList.cs index 95bf2bdb1..f611ff9ff 100644 --- a/services/Directory/FilterLists.Directory.Domain/Aggregates/FilterLists/FilterList.cs +++ b/services/Directory/FilterLists.Directory.Domain/Aggregates/FilterLists/FilterList.cs @@ -8,9 +8,9 @@ public class FilterList : Entity, IRequireChangeApproval { protected FilterList() { } - public string Name { get; private init; } = null!; + public string Name { get; private init; } = default!; public string? Description { get; private init; } - public virtual License License { get; private init; } = null!; + public virtual License License { get; private init; } = default!; public virtual IEnumerable ViewUrls { get; private init; } = new HashSet(); public Uri? HomeUrl { get; private init; } public Uri? OnionUrl { get; private init; } diff --git a/services/Directory/FilterLists.Directory.Domain/Aggregates/FilterLists/FilterListViewUrl.cs b/services/Directory/FilterLists.Directory.Domain/Aggregates/FilterLists/FilterListViewUrl.cs index 718714880..76fe3e0fd 100644 --- a/services/Directory/FilterLists.Directory.Domain/Aggregates/FilterLists/FilterListViewUrl.cs +++ b/services/Directory/FilterLists.Directory.Domain/Aggregates/FilterLists/FilterListViewUrl.cs @@ -8,7 +8,7 @@ protected FilterListViewUrl() { } public short SegmentNumber { get; private init; } public short Primariness { get; private init; } - public Uri Url { get; private init; } = null!; + public Uri Url { get; private init; } = default!; internal static FilterListViewUrl Create(short segmentNumber, short primariness, Uri url) { diff --git a/services/Directory/FilterLists.Directory.Domain/Aggregates/Licenses/License.cs b/services/Directory/FilterLists.Directory.Domain/Aggregates/Licenses/License.cs index 0707c83f0..c50f51b22 100644 --- a/services/Directory/FilterLists.Directory.Domain/Aggregates/Licenses/License.cs +++ b/services/Directory/FilterLists.Directory.Domain/Aggregates/Licenses/License.cs @@ -6,7 +6,7 @@ public class License : Entity { protected License() { } - public string Name { get; private init; } = null!; + public string Name { get; private init; } = default!; public Uri? Url { get; private init; } public bool PermitsModification { get; private init; } public bool PermitsDistribution { get; private init; } diff --git a/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/Dependent.cs b/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/Dependent.cs index 845568269..5d4964c3c 100644 --- a/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/Dependent.cs +++ b/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/Dependent.cs @@ -8,9 +8,9 @@ namespace FilterLists.Directory.Infrastructure.Persistence.Queries.Entities; public record Dependent { public long DependencyFilterListId { get; init; } - public FilterList DependencyFilterList { get; init; } = null!; + public FilterList DependencyFilterList { get; init; } = default!; public long DependentFilterListId { get; init; } - public FilterList DependentFilterList { get; init; } = null!; + public FilterList DependentFilterList { get; init; } = default!; } internal class DependentTypeConfiguration : IEntityTypeConfiguration diff --git a/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/FilterList.cs b/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/FilterList.cs index ea7e31aa3..ea16c2fa1 100644 --- a/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/FilterList.cs +++ b/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/FilterList.cs @@ -5,10 +5,10 @@ namespace FilterLists.Directory.Infrastructure.Persistence.Queries.Entities; public record FilterList : AggregateRoot { - public string Name { get; init; } = null!; + public string Name { get; init; } = default!; public string? Description { get; init; } public long LicenseId { get; init; } - public License License { get; init; } = null!; + public License License { get; init; } = default!; public IEnumerable FilterListSyntaxes { get; init; } = new HashSet(); public IEnumerable FilterListLanguages { get; init; } = new HashSet(); public IEnumerable FilterListTags { get; init; } = new HashSet(); diff --git a/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/FilterListLanguage.cs b/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/FilterListLanguage.cs index 8aeaa2b13..13b5af813 100644 --- a/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/FilterListLanguage.cs +++ b/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/FilterListLanguage.cs @@ -8,9 +8,9 @@ namespace FilterLists.Directory.Infrastructure.Persistence.Queries.Entities; public record FilterListLanguage { public long FilterListId { get; init; } - public FilterList FilterList { get; init; } = null!; + public FilterList FilterList { get; init; } = default!; public long LanguageId { get; init; } - public Language Language { get; init; } = null!; + public Language Language { get; init; } = default!; } internal class FilterListLanguageTypeConfiguration : IEntityTypeConfiguration diff --git a/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/FilterListMaintainer.cs b/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/FilterListMaintainer.cs index 2ec3475a7..a573a0e7f 100644 --- a/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/FilterListMaintainer.cs +++ b/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/FilterListMaintainer.cs @@ -8,9 +8,9 @@ namespace FilterLists.Directory.Infrastructure.Persistence.Queries.Entities; public record FilterListMaintainer { public long FilterListId { get; init; } - public FilterList FilterList { get; init; } = null!; + public FilterList FilterList { get; init; } = default!; public long MaintainerId { get; init; } - public Maintainer Maintainer { get; init; } = null!; + public Maintainer Maintainer { get; init; } = default!; } internal class FilterListMaintainerTypeConfiguration : IEntityTypeConfiguration diff --git a/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/FilterListSyntax.cs b/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/FilterListSyntax.cs index f8470254f..afdf9b323 100644 --- a/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/FilterListSyntax.cs +++ b/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/FilterListSyntax.cs @@ -8,9 +8,9 @@ namespace FilterLists.Directory.Infrastructure.Persistence.Queries.Entities; public record FilterListSyntax { public long FilterListId { get; init; } - public FilterList FilterList { get; init; } = null!; + public FilterList FilterList { get; init; } = default!; public long SyntaxId { get; init; } - public Syntax Syntax { get; init; } = null!; + public Syntax Syntax { get; init; } = default!; } internal class FilterListSyntaxTypeConfiguration : IEntityTypeConfiguration diff --git a/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/FilterListTag.cs b/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/FilterListTag.cs index bef1b5c60..82646ac2c 100644 --- a/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/FilterListTag.cs +++ b/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/FilterListTag.cs @@ -8,9 +8,9 @@ namespace FilterLists.Directory.Infrastructure.Persistence.Queries.Entities; public record FilterListTag { public long FilterListId { get; init; } - public FilterList FilterList { get; init; } = null!; + public FilterList FilterList { get; init; } = default!; public long TagId { get; init; } - public Tag Tag { get; init; } = null!; + public Tag Tag { get; init; } = default!; } internal class FilterListTagTypeConfiguration : IEntityTypeConfiguration diff --git a/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/FilterListViewUrl.cs b/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/FilterListViewUrl.cs index 27638ec57..fc387cf51 100644 --- a/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/FilterListViewUrl.cs +++ b/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/FilterListViewUrl.cs @@ -9,10 +9,10 @@ public record FilterListViewUrl { public long Id { get; init; } public long FilterListId { get; init; } - public FilterList FilterList { get; init; } = null!; + public FilterList FilterList { get; init; } = default!; public short SegmentNumber { get; init; } public short Primariness { get; init; } - public Uri Url { get; init; } = null!; + public Uri Url { get; init; } = default!; } internal class FilterListViewUrlConfiguration : IEntityTypeConfiguration diff --git a/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/Fork.cs b/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/Fork.cs index 348a4a77a..9b0b6222b 100644 --- a/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/Fork.cs +++ b/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/Fork.cs @@ -8,9 +8,9 @@ namespace FilterLists.Directory.Infrastructure.Persistence.Queries.Entities; public record Fork { public long UpstreamFilterListId { get; init; } - public FilterList UpstreamFilterList { get; init; } = null!; + public FilterList UpstreamFilterList { get; init; } = default!; public long ForkFilterListId { get; init; } - public FilterList ForkFilterList { get; init; } = null!; + public FilterList ForkFilterList { get; init; } = default!; } internal class ForkTypeConfiguration : IEntityTypeConfiguration diff --git a/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/Language.cs b/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/Language.cs index ff0e50583..710238cbc 100644 --- a/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/Language.cs +++ b/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/Language.cs @@ -5,8 +5,8 @@ namespace FilterLists.Directory.Infrastructure.Persistence.Queries.Entities; public record Language : AggregateRoot { - public string Iso6391 { get; init; } = null!; - public string Name { get; init; } = null!; + public string Iso6391 { get; init; } = default!; + public string Name { get; init; } = default!; public IEnumerable FilterListLanguages { get; init; } = new HashSet(); public IEnumerable Changes { get; init; } = new HashSet(); } diff --git a/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/License.cs b/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/License.cs index ebd68d2a7..1a9fbacc8 100644 --- a/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/License.cs +++ b/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/License.cs @@ -5,7 +5,7 @@ namespace FilterLists.Directory.Infrastructure.Persistence.Queries.Entities; public record License : AggregateRoot { - public string Name { get; init; } = null!; + public string Name { get; init; } = default!; public Uri? Url { get; init; } public bool PermitsModification { get; init; } public bool PermitsDistribution { get; init; } diff --git a/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/Maintainer.cs b/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/Maintainer.cs index 67ba8ff08..f11a61d76 100644 --- a/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/Maintainer.cs +++ b/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/Maintainer.cs @@ -4,7 +4,7 @@ namespace FilterLists.Directory.Infrastructure.Persistence.Queries.Entities; public record Maintainer : AggregateRoot { - public string Name { get; init; } = null!; + public string Name { get; init; } = default!; public Uri? Url { get; init; } public string? EmailAddress { get; init; } public string? TwitterHandle { get; init; } diff --git a/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/Merge.cs b/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/Merge.cs index d38fbb9e5..d0383f5f2 100644 --- a/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/Merge.cs +++ b/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/Merge.cs @@ -8,9 +8,9 @@ namespace FilterLists.Directory.Infrastructure.Persistence.Queries.Entities; public record Merge { public long IncludedInFilterListId { get; init; } - public FilterList IncludedInFilterList { get; init; } = null!; + public FilterList IncludedInFilterList { get; init; } = default!; public long IncludesFilterListId { get; init; } - public FilterList IncludesFilterList { get; init; } = null!; + public FilterList IncludesFilterList { get; init; } = default!; } internal class MergeTypeConfiguration : IEntityTypeConfiguration diff --git a/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/Software.cs b/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/Software.cs index d6753c7e7..729ff8650 100644 --- a/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/Software.cs +++ b/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/Software.cs @@ -5,7 +5,7 @@ namespace FilterLists.Directory.Infrastructure.Persistence.Queries.Entities; public record Software : AggregateRoot { - public string Name { get; init; } = null!; + public string Name { get; init; } = default!; public string? Description { get; init; } public Uri? HomeUrl { get; init; } public Uri? DownloadUrl { get; init; } diff --git a/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/SoftwareSyntax.cs b/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/SoftwareSyntax.cs index 3ef75157e..7214f7a47 100644 --- a/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/SoftwareSyntax.cs +++ b/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/SoftwareSyntax.cs @@ -8,9 +8,9 @@ namespace FilterLists.Directory.Infrastructure.Persistence.Queries.Entities; public record SoftwareSyntax { public long SoftwareId { get; init; } - public Software Software { get; init; } = null!; + public Software Software { get; init; } = default!; public long SyntaxId { get; init; } - public Syntax Syntax { get; init; } = null!; + public Syntax Syntax { get; init; } = default!; } internal class SoftwareSyntaxTypeConfiguration : IEntityTypeConfiguration diff --git a/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/Syntax.cs b/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/Syntax.cs index 14f5f537b..6545d52de 100644 --- a/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/Syntax.cs +++ b/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/Syntax.cs @@ -4,7 +4,7 @@ namespace FilterLists.Directory.Infrastructure.Persistence.Queries.Entities; public record Syntax : AggregateRoot { - public string Name { get; init; } = null!; + public string Name { get; init; } = default!; public string? Description { get; init; } public Uri? Url { get; init; } public IEnumerable FilterListSyntaxes { get; init; } = new HashSet(); diff --git a/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/Tag.cs b/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/Tag.cs index 8c18ede48..c3771c19f 100644 --- a/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/Tag.cs +++ b/services/Directory/FilterLists.Directory.Infrastructure/Persistence/Queries/Entities/Tag.cs @@ -4,7 +4,7 @@ namespace FilterLists.Directory.Infrastructure.Persistence.Queries.Entities; public record Tag : AggregateRoot { - public string Name { get; init; } = null!; + public string Name { get; init; } = default!; public string? Description { get; init; } public IEnumerable FilterListTags { get; init; } = new HashSet(); public IEnumerable Changes { get; init; } = new HashSet(); diff --git a/services/SharedKernel/FilterLists.SharedKernel.Logging/Options/ApplicationInsightsOptions.cs b/services/SharedKernel/FilterLists.SharedKernel.Logging/Options/ApplicationInsightsOptions.cs index e7a549d9e..07477275f 100644 --- a/services/SharedKernel/FilterLists.SharedKernel.Logging/Options/ApplicationInsightsOptions.cs +++ b/services/SharedKernel/FilterLists.SharedKernel.Logging/Options/ApplicationInsightsOptions.cs @@ -4,5 +4,5 @@ internal record ApplicationInsightsOptions { public const string Key = "ApplicationInsights"; - public string ServerTelemetryChannelStoragePath { get; init; } = null!; + public string ServerTelemetryChannelStoragePath { get; init; } = default!; }