diff --git a/src/Dhgms.Nucleotide.GenerationTests/Dhgms.Nucleotide.SampleApp.csproj b/src/Dhgms.Nucleotide.GenerationTests/Dhgms.Nucleotide.SampleApp.csproj index 3ef65de0..f154f43d 100644 --- a/src/Dhgms.Nucleotide.GenerationTests/Dhgms.Nucleotide.SampleApp.csproj +++ b/src/Dhgms.Nucleotide.GenerationTests/Dhgms.Nucleotide.SampleApp.csproj @@ -1,13 +1,15 @@  - netcoreapp6.0 + net6.0-windows 9 false + + diff --git a/src/Dhgms.Nucleotide.GenerationTests/EventIdExtensions.cs b/src/Dhgms.Nucleotide.GenerationTests/EventIdExtensions.cs index 6cff9f61..e53eaec2 100644 --- a/src/Dhgms.Nucleotide.GenerationTests/EventIdExtensions.cs +++ b/src/Dhgms.Nucleotide.GenerationTests/EventIdExtensions.cs @@ -1,4 +1,8 @@ -namespace Dhgms.Nucleotide.GenerationTests +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.GenerationTests { public static class NumericEventIds { diff --git a/src/Dhgms.Nucleotide.GenerationTests/Playground.cs b/src/Dhgms.Nucleotide.GenerationTests/Playground.cs index e4ef3dab..0ae6a3d3 100644 --- a/src/Dhgms.Nucleotide.GenerationTests/Playground.cs +++ b/src/Dhgms.Nucleotide.GenerationTests/Playground.cs @@ -1,6 +1,7 @@ -using System; -using System.Collections.Generic; -using System.Text; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace Dhgms.EfCoreContrib diff --git a/src/Dhgms.Nucleotide.Generators/Features/Common/AttributeGenerators/IAttributeGenerator.cs b/src/Dhgms.Nucleotide.Generators/Features/Common/AttributeGenerators/IAttributeGenerator.cs index 656f40e0..d306acb6 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Common/AttributeGenerators/IAttributeGenerator.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Common/AttributeGenerators/IAttributeGenerator.cs @@ -1,4 +1,8 @@ -using System.Collections.Generic; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System.Collections.Generic; using Dhgms.Nucleotide.Generators.PropertyInfo; using Microsoft.CodeAnalysis.CSharp.Syntax; diff --git a/src/Dhgms.Nucleotide.Generators/Features/Common/AttributeGenerators/NumericPropertyAttributeGenerator.cs b/src/Dhgms.Nucleotide.Generators/Features/Common/AttributeGenerators/NumericPropertyAttributeGenerator.cs index 9966a55a..fe5a9a22 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Common/AttributeGenerators/NumericPropertyAttributeGenerator.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Common/AttributeGenerators/NumericPropertyAttributeGenerator.cs @@ -1,4 +1,8 @@ -using System.Collections.Generic; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System.Collections.Generic; using Dhgms.Nucleotide.Generators.PropertyInfo; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; diff --git a/src/Dhgms.Nucleotide.Generators/Features/Common/AttributeGenerators/StringPropertyAttributeGenerator.cs b/src/Dhgms.Nucleotide.Generators/Features/Common/AttributeGenerators/StringPropertyAttributeGenerator.cs index 3262a9f2..5d7f5f43 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Common/AttributeGenerators/StringPropertyAttributeGenerator.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Common/AttributeGenerators/StringPropertyAttributeGenerator.cs @@ -1,4 +1,8 @@ -using System.Collections.Generic; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System.Collections.Generic; using Dhgms.Nucleotide.Generators.PropertyInfo; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; diff --git a/src/Dhgms.Nucleotide.Generators/Features/Cqrs/BaseQueryInterfaceGenerator.cs b/src/Dhgms.Nucleotide.Generators/Features/Cqrs/BaseQueryInterfaceGenerator.cs index f148d4e6..c926b834 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Cqrs/BaseQueryInterfaceGenerator.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Cqrs/BaseQueryInterfaceGenerator.cs @@ -1,4 +1,8 @@ -namespace Dhgms.Nucleotide.Generators.Features.Cqrs +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.Generators.Features.Cqrs { internal abstract class BaseQueryInterfaceGenerator { diff --git a/src/Dhgms.Nucleotide.Generators/Features/Cqrs/CommandFactoryInterfaceFeatureFlags.cs b/src/Dhgms.Nucleotide.Generators/Features/Cqrs/CommandFactoryInterfaceFeatureFlags.cs index 1c47c00c..c1616ae0 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Cqrs/CommandFactoryInterfaceFeatureFlags.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Cqrs/CommandFactoryInterfaceFeatureFlags.cs @@ -1,4 +1,8 @@ -namespace Dhgms.Nucleotide.Generators.Features.Cqrs +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.Generators.Features.Cqrs { public sealed class CommandFactoryInterfaceFeatureFlags { diff --git a/src/Dhgms.Nucleotide.Generators/Features/Cqrs/CommandFactoryInterfaceGenerator.cs b/src/Dhgms.Nucleotide.Generators/Features/Cqrs/CommandFactoryInterfaceGenerator.cs index 778c9646..2d982378 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Cqrs/CommandFactoryInterfaceGenerator.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Cqrs/CommandFactoryInterfaceGenerator.cs @@ -1,6 +1,9 @@ -using Dhgms.Nucleotide.Generators.Generators; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Generators; using Dhgms.Nucleotide.Generators.Models; -using Microsoft.CodeAnalysis; namespace Dhgms.Nucleotide.Generators.Features.Cqrs { diff --git a/src/Dhgms.Nucleotide.Generators/Features/Cqrs/CommandFactoryInterfaceGeneratorProcessor.cs b/src/Dhgms.Nucleotide.Generators/Features/Cqrs/CommandFactoryInterfaceGeneratorProcessor.cs index 01bb4ae4..2447c9a1 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Cqrs/CommandFactoryInterfaceGeneratorProcessor.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Cqrs/CommandFactoryInterfaceGeneratorProcessor.cs @@ -1,4 +1,8 @@ -using System; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using Dhgms.Nucleotide.Generators.GeneratorProcessors; using Dhgms.Nucleotide.Generators.Models; @@ -50,7 +54,7 @@ protected override string[] GetBaseInterfaces(IEntityGenerationModel entityGener var className = entityGenerationModel.ClassName; return new [] { - $"Whipstaff.Core.IAuditableCommandFactory" + $"global::Whipstaff.Core.IAuditableCommandFactory" }; } diff --git a/src/Dhgms.Nucleotide.Generators/Features/Cqrs/CommandInterfaceFeatureFlags.cs b/src/Dhgms.Nucleotide.Generators/Features/Cqrs/CommandInterfaceFeatureFlags.cs index f153a1d3..97290634 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Cqrs/CommandInterfaceFeatureFlags.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Cqrs/CommandInterfaceFeatureFlags.cs @@ -1,4 +1,8 @@ -namespace Dhgms.Nucleotide.Generators.Features.Cqrs +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.Generators.Features.Cqrs { public sealed class CommandInterfaceFeatureFlags { diff --git a/src/Dhgms.Nucleotide.Generators/Features/Cqrs/CommandInterfaceGenerator.cs b/src/Dhgms.Nucleotide.Generators/Features/Cqrs/CommandInterfaceGenerator.cs index 71342c1a..91509b2a 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Cqrs/CommandInterfaceGenerator.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Cqrs/CommandInterfaceGenerator.cs @@ -1,6 +1,9 @@ -using Dhgms.Nucleotide.Generators.Generators; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Generators; using Dhgms.Nucleotide.Generators.Models; -using Microsoft.CodeAnalysis; namespace Dhgms.Nucleotide.Generators.Features.Cqrs { diff --git a/src/Dhgms.Nucleotide.Generators/Features/Cqrs/CommandInterfaceGeneratorProcessor.cs b/src/Dhgms.Nucleotide.Generators/Features/Cqrs/CommandInterfaceGeneratorProcessor.cs index 341ec1d4..19ea439f 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Cqrs/CommandInterfaceGeneratorProcessor.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Cqrs/CommandInterfaceGeneratorProcessor.cs @@ -1,4 +1,8 @@ -using System; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using Dhgms.Nucleotide.Generators.GeneratorProcessors; using Dhgms.Nucleotide.Generators.Models; using Microsoft.CodeAnalysis.CSharp.Syntax; @@ -43,13 +47,13 @@ protected override string[] GetBaseInterfaces(IEntityGenerationModel entityGener { return new[] { - $"Whipstaff.Core.IAuditableRequest" + $"global::Whipstaff.Core.IAuditableRequest" }; } return new[] { - $"Whipstaff.Core.IAuditableRequest" + $"global::Whipstaff.Core.IAuditableRequest" }; } } diff --git a/src/Dhgms.Nucleotide.Generators/Features/Cqrs/ListQueryInterfaceGenerator.cs b/src/Dhgms.Nucleotide.Generators/Features/Cqrs/ListQueryInterfaceGenerator.cs index 9ff6c844..fe40ff47 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Cqrs/ListQueryInterfaceGenerator.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Cqrs/ListQueryInterfaceGenerator.cs @@ -1,4 +1,8 @@ -namespace Dhgms.Nucleotide.Generators.Features.Cqrs +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.Generators.Features.Cqrs { internal sealed class ListQueryInterfaceGenerator { diff --git a/src/Dhgms.Nucleotide.Generators/Features/Cqrs/QueryFactoryInterfaceFeatureFlags.cs b/src/Dhgms.Nucleotide.Generators/Features/Cqrs/QueryFactoryInterfaceFeatureFlags.cs index 905f72ba..8b147cee 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Cqrs/QueryFactoryInterfaceFeatureFlags.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Cqrs/QueryFactoryInterfaceFeatureFlags.cs @@ -1,4 +1,8 @@ -namespace Dhgms.Nucleotide.Generators.Features.Cqrs +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.Generators.Features.Cqrs { public sealed class QueryFactoryInterfaceFeatureFlags { diff --git a/src/Dhgms.Nucleotide.Generators/Features/Cqrs/QueryFactoryInterfaceGenerator.cs b/src/Dhgms.Nucleotide.Generators/Features/Cqrs/QueryFactoryInterfaceGenerator.cs index 879e7d60..7e16373e 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Cqrs/QueryFactoryInterfaceGenerator.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Cqrs/QueryFactoryInterfaceGenerator.cs @@ -1,6 +1,9 @@ -using Dhgms.Nucleotide.Generators.Generators; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Generators; using Dhgms.Nucleotide.Generators.Models; -using Microsoft.CodeAnalysis; namespace Dhgms.Nucleotide.Generators.Features.Cqrs { diff --git a/src/Dhgms.Nucleotide.Generators/Features/Cqrs/QueryFactoryInterfaceGeneratorProcessor.cs b/src/Dhgms.Nucleotide.Generators/Features/Cqrs/QueryFactoryInterfaceGeneratorProcessor.cs index 3c716aab..b1cb1ea9 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Cqrs/QueryFactoryInterfaceGeneratorProcessor.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Cqrs/QueryFactoryInterfaceGeneratorProcessor.cs @@ -1,4 +1,8 @@ -using System; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using Dhgms.Nucleotide.Generators.GeneratorProcessors; using Dhgms.Nucleotide.Generators.Models; @@ -49,7 +53,7 @@ protected override string[] GetBaseInterfaces(IEntityGenerationModel entityGener var className = entityGenerationModel.ClassName; return new [] { - $"Whipstaff.Core.IAuditableQueryFactory" + $"global::Whipstaff.Core.IAuditableQueryFactory" }; } diff --git a/src/Dhgms.Nucleotide.Generators/Features/Cqrs/QueryInterfaceFeatureFlag.cs b/src/Dhgms.Nucleotide.Generators/Features/Cqrs/QueryInterfaceFeatureFlag.cs index 6cef831b..5416c20c 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Cqrs/QueryInterfaceFeatureFlag.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Cqrs/QueryInterfaceFeatureFlag.cs @@ -1,4 +1,8 @@ -namespace Dhgms.Nucleotide.Generators.Features.Cqrs +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.Generators.Features.Cqrs { public sealed class QueryInterfaceFeatureFlag { diff --git a/src/Dhgms.Nucleotide.Generators/Features/Cqrs/QueryInterfaceGenerator.cs b/src/Dhgms.Nucleotide.Generators/Features/Cqrs/QueryInterfaceGenerator.cs index 0e953988..8601ea97 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Cqrs/QueryInterfaceGenerator.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Cqrs/QueryInterfaceGenerator.cs @@ -1,6 +1,9 @@ -using Dhgms.Nucleotide.Generators.Generators; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Generators; using Dhgms.Nucleotide.Generators.Models; -using Microsoft.CodeAnalysis; namespace Dhgms.Nucleotide.Generators.Features.Cqrs { diff --git a/src/Dhgms.Nucleotide.Generators/Features/Cqrs/QueryInterfaceGeneratorProcessor.cs b/src/Dhgms.Nucleotide.Generators/Features/Cqrs/QueryInterfaceGeneratorProcessor.cs index 97d69678..6080c3ff 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Cqrs/QueryInterfaceGeneratorProcessor.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Cqrs/QueryInterfaceGeneratorProcessor.cs @@ -1,4 +1,8 @@ -using System; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using Dhgms.Nucleotide.Generators.GeneratorProcessors; using Dhgms.Nucleotide.Generators.Models; using Microsoft.CodeAnalysis.CSharp.Syntax; @@ -46,13 +50,13 @@ protected override string[] GetBaseInterfaces(IEntityGenerationModel entityGener { return new[] { - $"Whipstaff.Core.IAuditableRequest" + $"global::Whipstaff.Core.IAuditableRequest" }; } return new[] { - $"Whipstaff.Core.IAuditableRequest" + $"global::Whipstaff.Core.IAuditableRequest" }; } } diff --git a/src/Dhgms.Nucleotide.Generators/Features/Cqrs/ViewQueryInterfaceGenerator.cs b/src/Dhgms.Nucleotide.Generators/Features/Cqrs/ViewQueryInterfaceGenerator.cs index 7a377829..082bf660 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Cqrs/ViewQueryInterfaceGenerator.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Cqrs/ViewQueryInterfaceGenerator.cs @@ -1,4 +1,8 @@ -namespace Dhgms.Nucleotide.Generators.Features.Cqrs +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.Generators.Features.Cqrs { internal sealed class ViewQueryInterfaceGenerator { diff --git a/src/Dhgms.Nucleotide.Generators/Features/Database/ForiegnKeyInterfaceFeatureFlags.cs b/src/Dhgms.Nucleotide.Generators/Features/Database/ForiegnKeyInterfaceFeatureFlags.cs index 8f018a69..f26dcd85 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Database/ForiegnKeyInterfaceFeatureFlags.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Database/ForiegnKeyInterfaceFeatureFlags.cs @@ -1,4 +1,7 @@ - +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + namespace Dhgms.Nucleotide.Generators.Features.Database { public sealed class ForiegnKeyInterfaceFeatureFlags diff --git a/src/Dhgms.Nucleotide.Generators/Features/Database/ForiegnKeyInterfaceGenerator.cs b/src/Dhgms.Nucleotide.Generators/Features/Database/ForiegnKeyInterfaceGenerator.cs index 0e3620d4..b75999f1 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Database/ForiegnKeyInterfaceGenerator.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Database/ForiegnKeyInterfaceGenerator.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Generators; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Generators; namespace Dhgms.Nucleotide.Generators.Features.Database { diff --git a/src/Dhgms.Nucleotide.Generators/Features/Database/ForiegnKeyInterfaceGeneratorProcessor.cs b/src/Dhgms.Nucleotide.Generators/Features/Database/ForiegnKeyInterfaceGeneratorProcessor.cs index 4e679723..88fa99ce 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Database/ForiegnKeyInterfaceGeneratorProcessor.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Database/ForiegnKeyInterfaceGeneratorProcessor.cs @@ -1,6 +1,8 @@ -using System; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + using Dhgms.Nucleotide.Generators.GeneratorProcessors; -using Dhgms.Nucleotide.Generators.Models; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; diff --git a/src/Dhgms.Nucleotide.Generators/Features/Database/ReferencedByEntityFeatureFlags.cs b/src/Dhgms.Nucleotide.Generators/Features/Database/ReferencedByEntityFeatureFlags.cs index 18f1232e..286c42f0 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Database/ReferencedByEntityFeatureFlags.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Database/ReferencedByEntityFeatureFlags.cs @@ -1,4 +1,8 @@ -namespace Dhgms.Nucleotide.Generators.Features.Database +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.Generators.Features.Database { public sealed class ReferencedByEntityFeatureFlags { diff --git a/src/Dhgms.Nucleotide.Generators/Features/Database/ReferencedByEntityGenerationModel.cs b/src/Dhgms.Nucleotide.Generators/Features/Database/ReferencedByEntityGenerationModel.cs index b1a9f6dd..200045a6 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Database/ReferencedByEntityGenerationModel.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Database/ReferencedByEntityGenerationModel.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.GeneratorProcessors; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.GeneratorProcessors; namespace Dhgms.Nucleotide.Generators.Features.Database { diff --git a/src/Dhgms.Nucleotide.Generators/Features/Database/ReferencedByEntityGenerator.cs b/src/Dhgms.Nucleotide.Generators/Features/Database/ReferencedByEntityGenerator.cs index c0078050..44d0744f 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Database/ReferencedByEntityGenerator.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Database/ReferencedByEntityGenerator.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Generators; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Generators; using Dhgms.Nucleotide.Generators.Models; namespace Dhgms.Nucleotide.Generators.Features.Database diff --git a/src/Dhgms.Nucleotide.Generators/Features/Database/ReferencedByEntityGeneratorProcessor.cs b/src/Dhgms.Nucleotide.Generators/Features/Database/ReferencedByEntityGeneratorProcessor.cs index fddb2d0c..3021720a 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Database/ReferencedByEntityGeneratorProcessor.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Database/ReferencedByEntityGeneratorProcessor.cs @@ -1,7 +1,8 @@ -using System.Collections.Generic; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + using Dhgms.Nucleotide.Generators.GeneratorProcessors; -using Dhgms.Nucleotide.Generators.Models; -using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; diff --git a/src/Dhgms.Nucleotide.Generators/Features/Dto/RequestDtoClassFeatureFlags.cs b/src/Dhgms.Nucleotide.Generators/Features/Dto/RequestDtoClassFeatureFlags.cs index b31d608b..112deaff 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Dto/RequestDtoClassFeatureFlags.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Dto/RequestDtoClassFeatureFlags.cs @@ -1,4 +1,8 @@ -namespace Dhgms.Nucleotide.Generators.Features.Dto +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.Generators.Features.Dto { public sealed class RequestDtoClassFeatureFlags { diff --git a/src/Dhgms.Nucleotide.Generators/Features/Dto/RequestDtoClassGenerator.cs b/src/Dhgms.Nucleotide.Generators/Features/Dto/RequestDtoClassGenerator.cs index 3a7e11ea..7f8e9dc0 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Dto/RequestDtoClassGenerator.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Dto/RequestDtoClassGenerator.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Generators; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Generators; using Dhgms.Nucleotide.Generators.Models; namespace Dhgms.Nucleotide.Generators.Features.Dto diff --git a/src/Dhgms.Nucleotide.Generators/Features/Dto/RequestDtoClassGeneratorProcessor.cs b/src/Dhgms.Nucleotide.Generators/Features/Dto/RequestDtoClassGeneratorProcessor.cs index b0879cb1..b04d253a 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Dto/RequestDtoClassGeneratorProcessor.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Dto/RequestDtoClassGeneratorProcessor.cs @@ -1,6 +1,9 @@ -using System; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; -using System.Threading.Tasks; using Dhgms.Nucleotide.Generators.GeneratorProcessors; using Dhgms.Nucleotide.Generators.Models; using Dhgms.Nucleotide.Generators.PropertyInfo; diff --git a/src/Dhgms.Nucleotide.Generators/Features/Dto/ResponseDtoClassFeatureFlags.cs b/src/Dhgms.Nucleotide.Generators/Features/Dto/ResponseDtoClassFeatureFlags.cs index 1ab6d781..887edcdd 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Dto/ResponseDtoClassFeatureFlags.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Dto/ResponseDtoClassFeatureFlags.cs @@ -1,4 +1,8 @@ -namespace Dhgms.Nucleotide.Generators.Features.Dto +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.Generators.Features.Dto { public sealed class ResponseDtoClassFeatureFlags { diff --git a/src/Dhgms.Nucleotide.Generators/Features/Dto/ResponseDtoClassGenerator.cs b/src/Dhgms.Nucleotide.Generators/Features/Dto/ResponseDtoClassGenerator.cs index f54cd641..aa1f6562 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Dto/ResponseDtoClassGenerator.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Dto/ResponseDtoClassGenerator.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Generators; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Generators; using Dhgms.Nucleotide.Generators.Models; namespace Dhgms.Nucleotide.Generators.Features.Dto diff --git a/src/Dhgms.Nucleotide.Generators/Features/Dto/ResponseDtoClassGeneratorProcessor.cs b/src/Dhgms.Nucleotide.Generators/Features/Dto/ResponseDtoClassGeneratorProcessor.cs index b2747925..94ecf358 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Dto/ResponseDtoClassGeneratorProcessor.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Dto/ResponseDtoClassGeneratorProcessor.cs @@ -1,6 +1,9 @@ -using System; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; -using System.Threading.Tasks; using Dhgms.Nucleotide.Generators.GeneratorProcessors; using Dhgms.Nucleotide.Generators.Models; using Dhgms.Nucleotide.Generators.PropertyInfo; diff --git a/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkDbContextFeatureFlags.cs b/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkDbContextFeatureFlags.cs index 30c04e4f..6571285b 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkDbContextFeatureFlags.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkDbContextFeatureFlags.cs @@ -1,4 +1,8 @@ -namespace Dhgms.Nucleotide.Generators.Features.EntityFramework +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.Generators.Features.EntityFramework { public sealed class EntityFrameworkDbContextFeatureFlags { diff --git a/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkDbContextGenerator.cs b/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkDbContextGenerator.cs index 6fb62b5a..5cdda146 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkDbContextGenerator.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkDbContextGenerator.cs @@ -1,6 +1,9 @@ -using Dhgms.Nucleotide.Generators.Generators; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Generators; using Dhgms.Nucleotide.Generators.Models; -using Microsoft.CodeAnalysis; namespace Dhgms.Nucleotide.Generators.Features.EntityFramework { diff --git a/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkDbContextGeneratorProcessor.cs b/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkDbContextGeneratorProcessor.cs index 1d6e43e8..b532613d 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkDbContextGeneratorProcessor.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkDbContextGeneratorProcessor.cs @@ -1,7 +1,10 @@ -using System; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Linq; -using System.Threading.Tasks; using Dhgms.Nucleotide.Generators.GeneratorProcessors; using Dhgms.Nucleotide.Generators.Models; using Dhgms.Nucleotide.Generators.PropertyInfo; diff --git a/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkEntityTypeConfigurationFeatureFlags.cs b/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkEntityTypeConfigurationFeatureFlags.cs index 8c2fb98d..6ca21391 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkEntityTypeConfigurationFeatureFlags.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkEntityTypeConfigurationFeatureFlags.cs @@ -1,4 +1,8 @@ -namespace Dhgms.Nucleotide.Generators.Features.EntityFramework +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.Generators.Features.EntityFramework { public sealed class EntityFrameworkEntityTypeConfigurationFeatureFlags { diff --git a/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkEntityTypeConfigurationGenerator.cs b/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkEntityTypeConfigurationGenerator.cs index 533d37c5..15922e40 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkEntityTypeConfigurationGenerator.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkEntityTypeConfigurationGenerator.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Generators; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Generators; namespace Dhgms.Nucleotide.Generators.Features.EntityFramework { diff --git a/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkEntityTypeConfigurationGeneratorProcessor.cs b/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkEntityTypeConfigurationGeneratorProcessor.cs index b5d52b1f..fd8054d3 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkEntityTypeConfigurationGeneratorProcessor.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkEntityTypeConfigurationGeneratorProcessor.cs @@ -1,4 +1,8 @@ -using System; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using Dhgms.Nucleotide.Generators.Features.Database; using Dhgms.Nucleotide.Generators.GeneratorProcessors; diff --git a/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkModelEntityGenerationModel.cs b/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkModelEntityGenerationModel.cs index d73c5b84..af7102fd 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkModelEntityGenerationModel.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkModelEntityGenerationModel.cs @@ -1,4 +1,8 @@ -using System.Collections.Generic; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System.Collections.Generic; using Dhgms.Nucleotide.Generators.Features.Database; using Dhgms.Nucleotide.Generators.GeneratorProcessors; using Dhgms.Nucleotide.Generators.PropertyInfo; diff --git a/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkModelFeatureFlags.cs b/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkModelFeatureFlags.cs index 7d7b641a..40f5cd1d 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkModelFeatureFlags.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkModelFeatureFlags.cs @@ -1,4 +1,8 @@ -namespace Dhgms.Nucleotide.Generators.Features.EntityFramework +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.Generators.Features.EntityFramework { public sealed class EntityFrameworkModelFeatureFlags { diff --git a/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkModelGenerator.cs b/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkModelGenerator.cs index 9d8cb998..7a96acdf 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkModelGenerator.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkModelGenerator.cs @@ -1,6 +1,8 @@ -using Dhgms.Nucleotide.Generators.Generators; -using Dhgms.Nucleotide.Generators.Models; -using Microsoft.CodeAnalysis; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Generators; namespace Dhgms.Nucleotide.Generators.Features.EntityFramework { diff --git a/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkModelGeneratorProcessor.cs b/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkModelGeneratorProcessor.cs index b1d878f7..2ed813b4 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkModelGeneratorProcessor.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/EntityFramework/EntityFrameworkModelGeneratorProcessor.cs @@ -1,6 +1,9 @@ -using System; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; -using System.Linq; using Dhgms.Nucleotide.Generators.Features.Common.AttributeGenerators; using Dhgms.Nucleotide.Generators.GeneratorProcessors; using Dhgms.Nucleotide.Generators.PropertyInfo; diff --git a/src/Dhgms.Nucleotide.Generators/Features/Feature/FeatureNamespaceGenerator.cs b/src/Dhgms.Nucleotide.Generators/Features/Feature/FeatureNamespaceGenerator.cs index 1f11f2bd..6329d76f 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Feature/FeatureNamespaceGenerator.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Feature/FeatureNamespaceGenerator.cs @@ -1,4 +1,8 @@ -namespace Dhgms.Nucleotide.Generators.Features.Feature +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.Generators.Features.Feature { class FeatureNamespaceGenerator { diff --git a/src/Dhgms.Nucleotide.Generators/Features/Logging/CrudControllerLoggerMessageActionFeatureFlags.cs b/src/Dhgms.Nucleotide.Generators/Features/Logging/CrudControllerLoggerMessageActionFeatureFlags.cs index 9f4ec7a7..38343400 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Logging/CrudControllerLoggerMessageActionFeatureFlags.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Logging/CrudControllerLoggerMessageActionFeatureFlags.cs @@ -1,6 +1,6 @@ -using System; -using System.Collections.Generic; -using System.Text; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. namespace Dhgms.Nucleotide.Generators.Features.Logging { diff --git a/src/Dhgms.Nucleotide.Generators/Features/Logging/CrudControllerLoggerMessageActionGenerator.cs b/src/Dhgms.Nucleotide.Generators/Features/Logging/CrudControllerLoggerMessageActionGenerator.cs index 99740610..dda5b252 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Logging/CrudControllerLoggerMessageActionGenerator.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Logging/CrudControllerLoggerMessageActionGenerator.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Generators; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Generators; using Dhgms.Nucleotide.Generators.Models; namespace Dhgms.Nucleotide.Generators.Features.Logging diff --git a/src/Dhgms.Nucleotide.Generators/Features/Logging/CrudControllerLoggerMessageActionGeneratorProcessor.cs b/src/Dhgms.Nucleotide.Generators/Features/Logging/CrudControllerLoggerMessageActionGeneratorProcessor.cs index 9c45db08..f70a0180 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Logging/CrudControllerLoggerMessageActionGeneratorProcessor.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Logging/CrudControllerLoggerMessageActionGeneratorProcessor.cs @@ -1,4 +1,8 @@ -using System; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using Dhgms.Nucleotide.Generators.GeneratorProcessors; using Dhgms.Nucleotide.Generators.Models; @@ -125,7 +129,7 @@ protected override IEnumerable GetImplementedInterfaces(IEntityGeneratio { return new [] { - "Whipstaff.AspNetCore.Features.Logging.ICrudControllerLogMessageActions" + "global::Whipstaff.AspNetCore.Features.Logging.ICrudControllerLogMessageActions" }; } diff --git a/src/Dhgms.Nucleotide.Generators/Features/Model/KeyedModelClassFeatureFlags.cs b/src/Dhgms.Nucleotide.Generators/Features/Model/KeyedModelClassFeatureFlags.cs index a0bc3737..e274ab69 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Model/KeyedModelClassFeatureFlags.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Model/KeyedModelClassFeatureFlags.cs @@ -1,4 +1,8 @@ -namespace Dhgms.Nucleotide.Generators.Features.Model +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.Generators.Features.Model { public sealed class KeyedModelClassFeatureFlags { diff --git a/src/Dhgms.Nucleotide.Generators/Features/Model/KeyedModelClassGenerator.cs b/src/Dhgms.Nucleotide.Generators/Features/Model/KeyedModelClassGenerator.cs index a9ae4616..4c16342f 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Model/KeyedModelClassGenerator.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Model/KeyedModelClassGenerator.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Generators; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Generators; using Dhgms.Nucleotide.Generators.Models; using Microsoft.CodeAnalysis; diff --git a/src/Dhgms.Nucleotide.Generators/Features/Model/KeyedModelClassGeneratorProcessor.cs b/src/Dhgms.Nucleotide.Generators/Features/Model/KeyedModelClassGeneratorProcessor.cs index d80226ce..934726b5 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Model/KeyedModelClassGeneratorProcessor.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Model/KeyedModelClassGeneratorProcessor.cs @@ -1,4 +1,8 @@ -using System; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using Dhgms.Nucleotide.Generators.GeneratorProcessors; using Dhgms.Nucleotide.Generators.Models; diff --git a/src/Dhgms.Nucleotide.Generators/Features/Model/KeyedModelInterfaceFeatureFlags.cs b/src/Dhgms.Nucleotide.Generators/Features/Model/KeyedModelInterfaceFeatureFlags.cs index 124b8304..89db8c72 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Model/KeyedModelInterfaceFeatureFlags.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Model/KeyedModelInterfaceFeatureFlags.cs @@ -1,4 +1,8 @@ -namespace Dhgms.Nucleotide.Generators.Features.Model +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.Generators.Features.Model { public sealed class KeyedModelInterfaceFeatureFlags { diff --git a/src/Dhgms.Nucleotide.Generators/Features/Model/KeyedModelInterfaceGenerator.cs b/src/Dhgms.Nucleotide.Generators/Features/Model/KeyedModelInterfaceGenerator.cs index f5146e7e..88883ade 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Model/KeyedModelInterfaceGenerator.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Model/KeyedModelInterfaceGenerator.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Generators; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Generators; using Dhgms.Nucleotide.Generators.Models; using Microsoft.CodeAnalysis; diff --git a/src/Dhgms.Nucleotide.Generators/Features/Model/KeyedModelInterfaceGeneratorProcessor.cs b/src/Dhgms.Nucleotide.Generators/Features/Model/KeyedModelInterfaceGeneratorProcessor.cs index bfc80557..f7b13e41 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Model/KeyedModelInterfaceGeneratorProcessor.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Model/KeyedModelInterfaceGeneratorProcessor.cs @@ -1,4 +1,8 @@ -using System; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using Dhgms.Nucleotide.Generators.GeneratorProcessors; using Dhgms.Nucleotide.Generators.Models; using Dhgms.Nucleotide.Generators.PropertyInfo; diff --git a/src/Dhgms.Nucleotide.Generators/Features/Model/UnkeyedModelClassFeatureFlags.cs b/src/Dhgms.Nucleotide.Generators/Features/Model/UnkeyedModelClassFeatureFlags.cs index 5e9d3e07..23b40896 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Model/UnkeyedModelClassFeatureFlags.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Model/UnkeyedModelClassFeatureFlags.cs @@ -1,4 +1,8 @@ -namespace Dhgms.Nucleotide.Generators.Features.Model +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.Generators.Features.Model { public sealed class UnkeyedModelClassFeatureFlags { diff --git a/src/Dhgms.Nucleotide.Generators/Features/Model/UnkeyedModelClassGenerator.cs b/src/Dhgms.Nucleotide.Generators/Features/Model/UnkeyedModelClassGenerator.cs index 285becc5..9543b926 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Model/UnkeyedModelClassGenerator.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Model/UnkeyedModelClassGenerator.cs @@ -1,6 +1,9 @@ -using Dhgms.Nucleotide.Generators.Generators; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Generators; using Dhgms.Nucleotide.Generators.Models; -using Microsoft.CodeAnalysis; namespace Dhgms.Nucleotide.Generators.Features.Model { diff --git a/src/Dhgms.Nucleotide.Generators/Features/Model/UnkeyedModelClassGeneratorProcessor.cs b/src/Dhgms.Nucleotide.Generators/Features/Model/UnkeyedModelClassGeneratorProcessor.cs index 40fd111b..a27d4b9e 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Model/UnkeyedModelClassGeneratorProcessor.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Model/UnkeyedModelClassGeneratorProcessor.cs @@ -1,4 +1,8 @@ -using System; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Linq; using Dhgms.Nucleotide.Generators.GeneratorProcessors; diff --git a/src/Dhgms.Nucleotide.Generators/Features/Model/UnkeyedModelInterfaceFeatureFlags.cs b/src/Dhgms.Nucleotide.Generators/Features/Model/UnkeyedModelInterfaceFeatureFlags.cs index 4e602148..29f835b3 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Model/UnkeyedModelInterfaceFeatureFlags.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Model/UnkeyedModelInterfaceFeatureFlags.cs @@ -1,4 +1,8 @@ -namespace Dhgms.Nucleotide.Generators.Features.Model +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.Generators.Features.Model { public sealed class UnkeyedModelInterfaceFeatureFlags { diff --git a/src/Dhgms.Nucleotide.Generators/Features/Model/UnkeyedModelInterfaceGenerator.cs b/src/Dhgms.Nucleotide.Generators/Features/Model/UnkeyedModelInterfaceGenerator.cs index 5c77f008..54e0792a 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Model/UnkeyedModelInterfaceGenerator.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Model/UnkeyedModelInterfaceGenerator.cs @@ -1,6 +1,9 @@ -using Dhgms.Nucleotide.Generators.Generators; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Generators; using Dhgms.Nucleotide.Generators.Models; -using Microsoft.CodeAnalysis; namespace Dhgms.Nucleotide.Generators.Features.Model { diff --git a/src/Dhgms.Nucleotide.Generators/Features/Model/UnkeyedModelInterfaceGeneratorProcessor.cs b/src/Dhgms.Nucleotide.Generators/Features/Model/UnkeyedModelInterfaceGeneratorProcessor.cs index 89507bf7..b2c6525f 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Model/UnkeyedModelInterfaceGeneratorProcessor.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Model/UnkeyedModelInterfaceGeneratorProcessor.cs @@ -1,4 +1,8 @@ -using System.Linq; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System.Linq; using Dhgms.Nucleotide.Generators.GeneratorProcessors; using Dhgms.Nucleotide.Generators.Models; using Microsoft.CodeAnalysis.CSharp.Syntax; diff --git a/src/Dhgms.Nucleotide.Generators/Features/Mvc/MvcControllerFeatureFlags.cs b/src/Dhgms.Nucleotide.Generators/Features/Mvc/MvcControllerFeatureFlags.cs index 778b66e8..09c1a19a 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Mvc/MvcControllerFeatureFlags.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Mvc/MvcControllerFeatureFlags.cs @@ -1,4 +1,8 @@ -namespace Dhgms.Nucleotide.Generators.Features.Mvc +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.Generators.Features.Mvc { public sealed class MvcControllerFeatureFlags { diff --git a/src/Dhgms.Nucleotide.Generators/Features/Mvc/MvcControllerGenerator.cs b/src/Dhgms.Nucleotide.Generators/Features/Mvc/MvcControllerGenerator.cs index 0ea17463..902767af 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Mvc/MvcControllerGenerator.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Mvc/MvcControllerGenerator.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Generators; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Generators; using Dhgms.Nucleotide.Generators.Models; namespace Dhgms.Nucleotide.Generators.Features.Mvc diff --git a/src/Dhgms.Nucleotide.Generators/Features/Mvc/MvcControllerGeneratorProcessor.cs b/src/Dhgms.Nucleotide.Generators/Features/Mvc/MvcControllerGeneratorProcessor.cs index 54d66a9f..4a9b847e 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/Mvc/MvcControllerGeneratorProcessor.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/Mvc/MvcControllerGeneratorProcessor.cs @@ -1,4 +1,8 @@ -using System; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using Dhgms.Nucleotide.Generators.GeneratorProcessors; using Dhgms.Nucleotide.Generators.Models; @@ -44,7 +48,7 @@ protected override IList GetUsings() /// protected override string GetBaseClass(string entityName) => - $"Whipstaff.AspNetCore.QueryOnlyController"; + $"global::Whipstaff.AspNetCore.QueryOnlyController"; protected override IEnumerable GetImplementedInterfaces(IEntityGenerationModel entityGenerationModel) { diff --git a/src/Dhgms.Nucleotide.Generators/Features/ReactiveUI/AbstractReactiveWindowClassGeneratorProcessor.cs b/src/Dhgms.Nucleotide.Generators/Features/ReactiveUI/AbstractReactiveWindowClassGeneratorProcessor.cs new file mode 100644 index 00000000..880aeb7d --- /dev/null +++ b/src/Dhgms.Nucleotide.Generators/Features/ReactiveUI/AbstractReactiveWindowClassGeneratorProcessor.cs @@ -0,0 +1,83 @@ +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; +using System.Collections.Generic; +using Dhgms.Nucleotide.Generators.Features.ReactiveUI.Wpf; +using Dhgms.Nucleotide.Generators.GeneratorProcessors; +using Dhgms.Nucleotide.Generators.PropertyInfo; +using Microsoft.CodeAnalysis; +using Microsoft.CodeAnalysis.CSharp.Syntax; + +namespace Dhgms.Nucleotide.Generators.Features.ReactiveUI +{ + public abstract class AbstractReactiveWindowClassGeneratorProcessor : BaseClassLevelCodeGeneratorProcessor + { + /// + protected override bool GetWhetherClassShouldBePartialClass() => false; + + /// + protected override bool GetWhetherClassShouldBeSealedClass() => false; + + /// + protected override IEnumerable GetPropertyDeclarations(ReactiveWindowGenerationModel entityGenerationModel) + { + return null; + } + + /// + protected override PropertyDeclarationSyntax GetPropertyDeclaration(PropertyInfoBase propertyInfo, AccessorDeclarationSyntax[] accessorList, IEnumerable summary) + { + return null; + } + + /// + protected override MethodDeclarationSyntax[] GetMethodDeclarations(ReactiveWindowGenerationModel entityGenerationModel) + { + return null; + } + + /// + protected override IList GetUsings() + { + return null; + } + + /// + protected override string[] GetClassLevelCommentRemarks(string entityName) + { + return null; + } + + /// + protected override IList>> GetClassAttributes(ReactiveWindowGenerationModel entityDeclaration) + { + return null; + } + + /// + protected override IList GetBaseConstructorArguments() => null; + + /// + protected override IList, string, Accessibility>> GetConstructorArguments() + { + return null; + } + + /// + protected override IEnumerable GetImplementedInterfaces(ReactiveWindowGenerationModel entityGenerationModel) + { + return null; + } + + /// + protected override string[] GetClassPrefixes() => null; + + /// + protected override SeparatedSyntaxList GetAttributesForProperty(PropertyInfoBase propertyInfo) + { + return default(SeparatedSyntaxList); + } + } +} diff --git a/src/Dhgms.Nucleotide.Generators/Features/ReactiveUI/ReactiveWindowClassFeatureFlags.cs b/src/Dhgms.Nucleotide.Generators/Features/ReactiveUI/ReactiveWindowClassFeatureFlags.cs new file mode 100644 index 00000000..aa11fe12 --- /dev/null +++ b/src/Dhgms.Nucleotide.Generators/Features/ReactiveUI/ReactiveWindowClassFeatureFlags.cs @@ -0,0 +1,10 @@ +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.Generators.Features.ReactiveUI.Wpf +{ + public class ReactiveWindowClassFeatureFlags + { + } +} diff --git a/src/Dhgms.Nucleotide.Generators/Features/ReactiveUI/ReactiveWindowClassGenerator.cs b/src/Dhgms.Nucleotide.Generators/Features/ReactiveUI/ReactiveWindowClassGenerator.cs new file mode 100644 index 00000000..6c3fb028 --- /dev/null +++ b/src/Dhgms.Nucleotide.Generators/Features/ReactiveUI/ReactiveWindowClassGenerator.cs @@ -0,0 +1,17 @@ +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Features.ReactiveUI.Wpf; +using Dhgms.Nucleotide.Generators.Generators; + +namespace Dhgms.Nucleotide.Generators.Features.ReactiveUI +{ + public abstract class ReactiveWindowClassGenerator : BaseClassLevelCodeGenerator + { + protected override string GetNamespace() + { + return "Views"; + } + } +} diff --git a/src/Dhgms.Nucleotide.Generators/Features/ReactiveUI/ReactiveWindowClassGeneratorProcessor.cs b/src/Dhgms.Nucleotide.Generators/Features/ReactiveUI/ReactiveWindowClassGeneratorProcessor.cs new file mode 100644 index 00000000..8af64ee2 --- /dev/null +++ b/src/Dhgms.Nucleotide.Generators/Features/ReactiveUI/ReactiveWindowClassGeneratorProcessor.cs @@ -0,0 +1,31 @@ +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.Generators.Features.ReactiveUI +{ + public sealed class ReactiveWindowClassGeneratorProcessor : AbstractReactiveWindowClassGeneratorProcessor + { + protected override string[] GetClassLevelCommentSummary(string entityName) + { + return new[] + { + $"ReactiveUI Window wrapper for {entityName}. This is done to remove a build and compile time issue with using generic base classes in WPF controls.", + "While support has improved you can end up with build chain failures which are vague and actually because the resolution of generics in XAML and the binary code are blocking each other", + "from building. You can reduce the risks of this by removing EVERYTHING but the direct xaml code and code-behind logic. But you can end up with an extra library", + "project in your build chain. Alternatively you can use these wrappers to remove the generics from the xaml file." + }; + } + + protected override string GetBaseClass(string entityName) + { + return $"global::ReactiveUI.ReactiveWindow<{entityName}>"; + } + + /// + protected override string GetClassSuffix() + { + return "ReactiveWindow"; + } + } +} diff --git a/src/Dhgms.Nucleotide.Generators/Features/ReactiveUI/ReactiveWindowGenerationModel.cs b/src/Dhgms.Nucleotide.Generators/Features/ReactiveUI/ReactiveWindowGenerationModel.cs new file mode 100644 index 00000000..7a60bf82 --- /dev/null +++ b/src/Dhgms.Nucleotide.Generators/Features/ReactiveUI/ReactiveWindowGenerationModel.cs @@ -0,0 +1,38 @@ +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; +using Dhgms.Nucleotide.Generators.GeneratorProcessors; + +namespace Dhgms.Nucleotide.Generators.Features.ReactiveUI.Wpf +{ + public sealed class ReactiveWindowGenerationModel : IClassName + { + public ReactiveWindowGenerationModel( + string className, + string viewModelType) + { + if (string.IsNullOrWhiteSpace(className)) + { + throw new ArgumentNullException(nameof(className)); + } + + if (string.IsNullOrWhiteSpace(viewModelType)) + { + throw new ArgumentNullException(nameof(viewModelType)); + } + + ClassName = className; + ViewModelType = viewModelType; + } + + /// + public string ClassName { get; } + + /// + /// Gets the fully qualified type for the view model. Can be a class or interface, should inherit off IReactiveObject. + /// + public string ViewModelType { get; } + } +} diff --git a/src/Dhgms.Nucleotide.Generators/Features/ReactiveUI/Wpf/ReactiveMetroWindowClassGenerator.cs b/src/Dhgms.Nucleotide.Generators/Features/ReactiveUI/Wpf/ReactiveMetroWindowClassGenerator.cs new file mode 100644 index 00000000..7bd4de98 --- /dev/null +++ b/src/Dhgms.Nucleotide.Generators/Features/ReactiveUI/Wpf/ReactiveMetroWindowClassGenerator.cs @@ -0,0 +1,17 @@ +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Generators; + +namespace Dhgms.Nucleotide.Generators.Features.ReactiveUI.Wpf +{ + public abstract class ReactiveMetroWindowClassGenerator : BaseClassLevelCodeGenerator + { + /// + protected override string GetNamespace() + { + return "Views"; + } + } +} diff --git a/src/Dhgms.Nucleotide.Generators/Features/ReactiveUI/Wpf/ReactiveMetroWindowClassGeneratorProcessor.cs b/src/Dhgms.Nucleotide.Generators/Features/ReactiveUI/Wpf/ReactiveMetroWindowClassGeneratorProcessor.cs new file mode 100644 index 00000000..f05059b1 --- /dev/null +++ b/src/Dhgms.Nucleotide.Generators/Features/ReactiveUI/Wpf/ReactiveMetroWindowClassGeneratorProcessor.cs @@ -0,0 +1,31 @@ +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.Generators.Features.ReactiveUI.Wpf +{ + public sealed class ReactiveMetroWindowClassGeneratorProcessor : AbstractReactiveWindowClassGeneratorProcessor + { + protected override string[] GetClassLevelCommentSummary(string entityName) + { + return new[] + { + $"Reactive Metro Window wrapper for {entityName}. This is done to remove a build and compile time issue with using generic base classes in WPF controls.", + "While support has improved you can end up with build chain failures which are vague and actually because the resolution of generics in XAML and the binary code are blocking each other", + "from building. You can reduce the risks of this by removing EVERYTHING but the direct xaml code and codebehind logic. But you can end up with an extra library", + "project in your build chain. Alternatively you can use these wrappers to remove the generics from the xaml file." + }; + } + + protected override string GetBaseClass(string entityName) + { + return $"global::Whipstaff.Wpf.Mahapps.ReactiveMetroWindow<{entityName}>"; + } + + /// + protected override string GetClassSuffix() + { + return "ReactiveMetroWindow"; + } + } +} diff --git a/src/Dhgms.Nucleotide.Generators/Features/ReactiveUI/Wpf/ReactiveSimpleChildWindowClassGenerator.cs b/src/Dhgms.Nucleotide.Generators/Features/ReactiveUI/Wpf/ReactiveSimpleChildWindowClassGenerator.cs new file mode 100644 index 00000000..99ed21e4 --- /dev/null +++ b/src/Dhgms.Nucleotide.Generators/Features/ReactiveUI/Wpf/ReactiveSimpleChildWindowClassGenerator.cs @@ -0,0 +1,16 @@ +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Generators; + +namespace Dhgms.Nucleotide.Generators.Features.ReactiveUI.Wpf +{ + public abstract class ReactiveSimpleChildWindowClassGenerator : BaseClassLevelCodeGenerator + { + protected override string GetNamespace() + { + return "Views"; + } + } +} diff --git a/src/Dhgms.Nucleotide.Generators/Features/ReactiveUI/Wpf/ReactiveSimpleChildWindowClassGeneratorProcessor.cs b/src/Dhgms.Nucleotide.Generators/Features/ReactiveUI/Wpf/ReactiveSimpleChildWindowClassGeneratorProcessor.cs new file mode 100644 index 00000000..306c9975 --- /dev/null +++ b/src/Dhgms.Nucleotide.Generators/Features/ReactiveUI/Wpf/ReactiveSimpleChildWindowClassGeneratorProcessor.cs @@ -0,0 +1,31 @@ +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.Generators.Features.ReactiveUI.Wpf +{ + public sealed class ReactiveSimpleChildWindowClassGeneratorProcessor : AbstractReactiveWindowClassGeneratorProcessor + { + protected override string[] GetClassLevelCommentSummary(string entityName) + { + return new[] + { + $"Reactive Simple Child Window wrapper for {entityName}. This is done to remove a build and compile time issue with using generic base classes in WPF controls.", + "While support has improved you can end up with build chain failures which are vague and actually because the resolution of generics in XAML and the binary code are blocking each other", + "from building. You can reduce the risks of this by removing EVERYTHING but the direct xaml code and codebehind logic. But you can end up with an extra library", + "project in your build chain. Alternatively you can use these wrappers to remove the generics from the xaml file." + }; + } + + protected override string GetBaseClass(string entityName) + { + return $"global::Whipstaff.Wpf.Mahapps.ReactiveSimpleChildWindow<{entityName}>"; + } + + /// + protected override string GetClassSuffix() + { + return "ReactiveSimpleChildWindow"; + } + } +} diff --git a/src/Dhgms.Nucleotide.Generators/Features/ReactiveUi/ViewModelClassGenerator.cs b/src/Dhgms.Nucleotide.Generators/Features/ReactiveUi/ViewModelClassGenerator.cs index 04f16b47..76e63c8f 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/ReactiveUi/ViewModelClassGenerator.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/ReactiveUi/ViewModelClassGenerator.cs @@ -1,4 +1,8 @@ -namespace Dhgms.Nucleotide.Generators.Features.ReactiveUi +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.Generators.Features.ReactiveUI { public sealed class ViewModelClassGenerator { diff --git a/src/Dhgms.Nucleotide.Generators/Features/ReactiveUi/ViewModelInterfaceGenerator.cs b/src/Dhgms.Nucleotide.Generators/Features/ReactiveUi/ViewModelInterfaceGenerator.cs index 35c80a48..42f9bbe2 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/ReactiveUi/ViewModelInterfaceGenerator.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/ReactiveUi/ViewModelInterfaceGenerator.cs @@ -1,4 +1,8 @@ -namespace Dhgms.Nucleotide.Generators.Features.ReactiveUi +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.Generators.Features.ReactiveUI { public sealed class ViewModelInterfaceGenerator { diff --git a/src/Dhgms.Nucleotide.Generators/Features/ReactiveUi/WpfViewForBaseClassGenerator.cs b/src/Dhgms.Nucleotide.Generators/Features/ReactiveUi/WpfViewForBaseClassGenerator.cs deleted file mode 100644 index c6ebf8ff..00000000 --- a/src/Dhgms.Nucleotide.Generators/Features/ReactiveUi/WpfViewForBaseClassGenerator.cs +++ /dev/null @@ -1,6 +0,0 @@ -namespace Dhgms.Nucleotide.Generators.Features.ReactiveUi -{ - public sealed class WpfViewForBaseClassGenerator - { - } -} diff --git a/src/Dhgms.Nucleotide.Generators/Features/SignalR/SignalRHubClassGenerator.cs b/src/Dhgms.Nucleotide.Generators/Features/SignalR/SignalRHubClassGenerator.cs index 66f5ae5f..e04157f8 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/SignalR/SignalRHubClassGenerator.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/SignalR/SignalRHubClassGenerator.cs @@ -1,4 +1,8 @@ -using System.Text; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System.Text; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; diff --git a/src/Dhgms.Nucleotide.Generators/Features/SignalR/SignalRHubInterfaceFeatureFlags.cs b/src/Dhgms.Nucleotide.Generators/Features/SignalR/SignalRHubInterfaceFeatureFlags.cs index abd8e4a5..bdb3a419 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/SignalR/SignalRHubInterfaceFeatureFlags.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/SignalR/SignalRHubInterfaceFeatureFlags.cs @@ -1,4 +1,8 @@ -namespace Dhgms.Nucleotide.Generators.Features.SignalR +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.Generators.Features.SignalR { public sealed class SignalRHubInterfaceFeatureFlags { diff --git a/src/Dhgms.Nucleotide.Generators/Features/SignalR/SignalRHubInterfaceGenerator.cs b/src/Dhgms.Nucleotide.Generators/Features/SignalR/SignalRHubInterfaceGenerator.cs index d7a2bb17..054e2657 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/SignalR/SignalRHubInterfaceGenerator.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/SignalR/SignalRHubInterfaceGenerator.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Generators; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Generators; using Dhgms.Nucleotide.Generators.Models; namespace Dhgms.Nucleotide.Generators.Features.SignalR diff --git a/src/Dhgms.Nucleotide.Generators/Features/SignalR/SignalRHubInterfaceGeneratorProcessor.cs b/src/Dhgms.Nucleotide.Generators/Features/SignalR/SignalRHubInterfaceGeneratorProcessor.cs index 75987012..2368c534 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/SignalR/SignalRHubInterfaceGeneratorProcessor.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/SignalR/SignalRHubInterfaceGeneratorProcessor.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.GeneratorProcessors; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.GeneratorProcessors; using Dhgms.Nucleotide.Generators.Models; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; diff --git a/src/Dhgms.Nucleotide.Generators/Features/WebApi/WebApiClientFeatureFlags.cs b/src/Dhgms.Nucleotide.Generators/Features/WebApi/WebApiClientFeatureFlags.cs index 8d940b6f..ea3fdaf9 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/WebApi/WebApiClientFeatureFlags.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/WebApi/WebApiClientFeatureFlags.cs @@ -1,4 +1,8 @@ -namespace Dhgms.Nucleotide.Generators.Features.WebApi +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.Generators.Features.WebApi { public sealed class WebApiClientFeatureFlags { diff --git a/src/Dhgms.Nucleotide.Generators/Features/WebApi/WebApiClientGenerator.cs b/src/Dhgms.Nucleotide.Generators/Features/WebApi/WebApiClientGenerator.cs index 5a5b7995..a7410d08 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/WebApi/WebApiClientGenerator.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/WebApi/WebApiClientGenerator.cs @@ -1,6 +1,9 @@ -using Dhgms.Nucleotide.Generators.Generators; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Generators; using Dhgms.Nucleotide.Generators.Models; -using Microsoft.CodeAnalysis; namespace Dhgms.Nucleotide.Generators.Features.WebApi { diff --git a/src/Dhgms.Nucleotide.Generators/Features/WebApi/WebApiClientGeneratorProcessor.cs b/src/Dhgms.Nucleotide.Generators/Features/WebApi/WebApiClientGeneratorProcessor.cs index 7bb34eb9..57761e94 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/WebApi/WebApiClientGeneratorProcessor.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/WebApi/WebApiClientGeneratorProcessor.cs @@ -1,4 +1,8 @@ -using System; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using Dhgms.Nucleotide.Generators.GeneratorProcessors; using Dhgms.Nucleotide.Generators.Models; diff --git a/src/Dhgms.Nucleotide.Generators/Features/WebApi/WebApiServiceFeatureFlags.cs b/src/Dhgms.Nucleotide.Generators/Features/WebApi/WebApiServiceFeatureFlags.cs index 83e9ac4f..0e35c67c 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/WebApi/WebApiServiceFeatureFlags.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/WebApi/WebApiServiceFeatureFlags.cs @@ -1,4 +1,8 @@ -namespace Dhgms.Nucleotide.Generators.Features.WebApi +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.Generators.Features.WebApi { public sealed class WebApiServiceFeatureFlags { diff --git a/src/Dhgms.Nucleotide.Generators/Features/WebApi/WebApiServiceGenerator.cs b/src/Dhgms.Nucleotide.Generators/Features/WebApi/WebApiServiceGenerator.cs index c6041916..c3a7477f 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/WebApi/WebApiServiceGenerator.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/WebApi/WebApiServiceGenerator.cs @@ -1,6 +1,9 @@ -using Dhgms.Nucleotide.Generators.Generators; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Generators; using Dhgms.Nucleotide.Generators.Models; -using Microsoft.CodeAnalysis; namespace Dhgms.Nucleotide.Generators.Features.WebApi { diff --git a/src/Dhgms.Nucleotide.Generators/Features/WebApi/WebApiServiceGeneratorProcessor.cs b/src/Dhgms.Nucleotide.Generators/Features/WebApi/WebApiServiceGeneratorProcessor.cs index 2d60dcb5..49edf036 100644 --- a/src/Dhgms.Nucleotide.Generators/Features/WebApi/WebApiServiceGeneratorProcessor.cs +++ b/src/Dhgms.Nucleotide.Generators/Features/WebApi/WebApiServiceGeneratorProcessor.cs @@ -1,6 +1,9 @@ -using System; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; -using System.Text; using Dhgms.Nucleotide.Generators.GeneratorProcessors; using Dhgms.Nucleotide.Generators.Models; using Dhgms.Nucleotide.Generators.PropertyInfo; @@ -42,7 +45,7 @@ protected override IList GetUsings() /// protected override string GetBaseClass(string entityName) => - $"Whipstaff.AspNetCore.CrudController"; + $"global::Whipstaff.AspNetCore.CrudController"; protected override IEnumerable GetImplementedInterfaces(IEntityGenerationModel entityGenerationModel) { diff --git a/src/Dhgms.Nucleotide.Generators/GeneratorProcessors/BaseClassLevelCodeGeneratorProcessor.cs b/src/Dhgms.Nucleotide.Generators/GeneratorProcessors/BaseClassLevelCodeGeneratorProcessor.cs index f3a22b3c..0b9702b7 100644 --- a/src/Dhgms.Nucleotide.Generators/GeneratorProcessors/BaseClassLevelCodeGeneratorProcessor.cs +++ b/src/Dhgms.Nucleotide.Generators/GeneratorProcessors/BaseClassLevelCodeGeneratorProcessor.cs @@ -1,8 +1,10 @@ -using System; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Linq; -using System.Text; -using System.Threading.Tasks; using Dhgms.Nucleotide.Generators.Models; using Dhgms.Nucleotide.Generators.PropertyInfo; using Microsoft.CodeAnalysis; diff --git a/src/Dhgms.Nucleotide.Generators/GeneratorProcessors/BaseGeneratorProcessor.cs b/src/Dhgms.Nucleotide.Generators/GeneratorProcessors/BaseGeneratorProcessor.cs index f92225c5..14d8a32f 100644 --- a/src/Dhgms.Nucleotide.Generators/GeneratorProcessors/BaseGeneratorProcessor.cs +++ b/src/Dhgms.Nucleotide.Generators/GeneratorProcessors/BaseGeneratorProcessor.cs @@ -1,8 +1,9 @@ -using System; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + using System.Collections.Generic; using System.Linq; -using System.Text; -using System.Threading.Tasks; using Dhgms.Nucleotide.Generators.Models; using Dhgms.Nucleotide.Generators.PropertyInfo; using Microsoft.CodeAnalysis; diff --git a/src/Dhgms.Nucleotide.Generators/GeneratorProcessors/BaseInterfaceLevelCodeGeneratorProcessor.cs b/src/Dhgms.Nucleotide.Generators/GeneratorProcessors/BaseInterfaceLevelCodeGeneratorProcessor.cs index e6c21d86..d3e118db 100644 --- a/src/Dhgms.Nucleotide.Generators/GeneratorProcessors/BaseInterfaceLevelCodeGeneratorProcessor.cs +++ b/src/Dhgms.Nucleotide.Generators/GeneratorProcessors/BaseInterfaceLevelCodeGeneratorProcessor.cs @@ -1,8 +1,9 @@ -using System; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + using System.Collections.Generic; using System.Linq; -using System.Text; -using System.Threading.Tasks; using Dhgms.Nucleotide.Generators.Models; using Dhgms.Nucleotide.Generators.PropertyInfo; using Microsoft.CodeAnalysis; diff --git a/src/Dhgms.Nucleotide.Generators/GeneratorProcessors/IClassName.cs b/src/Dhgms.Nucleotide.Generators/GeneratorProcessors/IClassName.cs index eb18b5e9..27c334c2 100644 --- a/src/Dhgms.Nucleotide.Generators/GeneratorProcessors/IClassName.cs +++ b/src/Dhgms.Nucleotide.Generators/GeneratorProcessors/IClassName.cs @@ -1,4 +1,8 @@ -namespace Dhgms.Nucleotide.Generators.GeneratorProcessors +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.Generators.GeneratorProcessors { public interface IClassName { diff --git a/src/Dhgms.Nucleotide.Generators/GeneratorProcessors/ServiceInterfaceGeneratorProcessor.cs b/src/Dhgms.Nucleotide.Generators/GeneratorProcessors/ServiceInterfaceGeneratorProcessor.cs index 93a27b9e..6b7ae34b 100644 --- a/src/Dhgms.Nucleotide.Generators/GeneratorProcessors/ServiceInterfaceGeneratorProcessor.cs +++ b/src/Dhgms.Nucleotide.Generators/GeneratorProcessors/ServiceInterfaceGeneratorProcessor.cs @@ -1,6 +1,7 @@ -using System; -using System.Collections.Generic; -using System.Text; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + using Dhgms.Nucleotide.Generators.Models; using Microsoft.CodeAnalysis.CSharp.Syntax; diff --git a/src/Dhgms.Nucleotide.Generators/Generators/BaseClassLevelCodeGenerator.cs b/src/Dhgms.Nucleotide.Generators/Generators/BaseClassLevelCodeGenerator.cs index a9dce218..fc6677fd 100644 --- a/src/Dhgms.Nucleotide.Generators/Generators/BaseClassLevelCodeGenerator.cs +++ b/src/Dhgms.Nucleotide.Generators/Generators/BaseClassLevelCodeGenerator.cs @@ -1,5 +1,8 @@ -using Dhgms.Nucleotide.Generators.GeneratorProcessors; -using Dhgms.Nucleotide.Generators.Models; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.GeneratorProcessors; namespace Dhgms.Nucleotide.Generators.Generators { diff --git a/src/Dhgms.Nucleotide.Generators/Generators/BaseGenerator.cs b/src/Dhgms.Nucleotide.Generators/Generators/BaseGenerator.cs index bc1f96ea..64bef723 100644 --- a/src/Dhgms.Nucleotide.Generators/Generators/BaseGenerator.cs +++ b/src/Dhgms.Nucleotide.Generators/Generators/BaseGenerator.cs @@ -1,7 +1,10 @@ -using System; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using System.Text; using System.Threading; -using System.Threading.Tasks; using Dhgms.Nucleotide.Generators.GeneratorProcessors; using Dhgms.Nucleotide.Generators.Models; using Microsoft.CodeAnalysis; diff --git a/src/Dhgms.Nucleotide.Generators/Generators/BaseInterfaceLevelCodeGenerator.cs b/src/Dhgms.Nucleotide.Generators/Generators/BaseInterfaceLevelCodeGenerator.cs index 3abe66d6..4c3e4966 100644 --- a/src/Dhgms.Nucleotide.Generators/Generators/BaseInterfaceLevelCodeGenerator.cs +++ b/src/Dhgms.Nucleotide.Generators/Generators/BaseInterfaceLevelCodeGenerator.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.GeneratorProcessors; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.GeneratorProcessors; namespace Dhgms.Nucleotide.Generators.Generators { diff --git a/src/Dhgms.Nucleotide.Generators/Generators/ServiceInterfaceFeatureFlags.cs b/src/Dhgms.Nucleotide.Generators/Generators/ServiceInterfaceFeatureFlags.cs index c6e63267..724c54f6 100644 --- a/src/Dhgms.Nucleotide.Generators/Generators/ServiceInterfaceFeatureFlags.cs +++ b/src/Dhgms.Nucleotide.Generators/Generators/ServiceInterfaceFeatureFlags.cs @@ -1,4 +1,8 @@ -namespace Dhgms.Nucleotide.Generators.Generators +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.Generators.Generators { public sealed class ServiceInterfaceFeatureFlags { diff --git a/src/Dhgms.Nucleotide.Generators/Generators/ServiceInterfaceGenerator.cs b/src/Dhgms.Nucleotide.Generators/Generators/ServiceInterfaceGenerator.cs index 4231d091..c6e67a36 100644 --- a/src/Dhgms.Nucleotide.Generators/Generators/ServiceInterfaceGenerator.cs +++ b/src/Dhgms.Nucleotide.Generators/Generators/ServiceInterfaceGenerator.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.GeneratorProcessors; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.GeneratorProcessors; using Dhgms.Nucleotide.Generators.Models; namespace Dhgms.Nucleotide.Generators.Generators diff --git a/src/Dhgms.Nucleotide.Generators/Models/CollectionType.cs b/src/Dhgms.Nucleotide.Generators/Models/CollectionType.cs index 68eb90b2..0bd9bd8c 100644 --- a/src/Dhgms.Nucleotide.Generators/Models/CollectionType.cs +++ b/src/Dhgms.Nucleotide.Generators/Models/CollectionType.cs @@ -1,9 +1,6 @@ -// -------------------------------------------------------------------------------------------------------------------- -// -// Licensed under GNU General Public License version 2 (GPLv2) -// -// -// -------------------------------------------------------------------------------------------------------------------- +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. namespace Dhgms.Nucleotide.Generators.Models { diff --git a/src/Dhgms.Nucleotide.Generators/Models/ConfigurationType.cs b/src/Dhgms.Nucleotide.Generators/Models/ConfigurationType.cs index 44c998ef..39f27fe2 100644 --- a/src/Dhgms.Nucleotide.Generators/Models/ConfigurationType.cs +++ b/src/Dhgms.Nucleotide.Generators/Models/ConfigurationType.cs @@ -1,8 +1,6 @@ -// -------------------------------------------------------------------------------------------------------------------- -// -// Licensed under GNU General Public License version 2 (GPLv2) -// -// -------------------------------------------------------------------------------------------------------------------- +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. namespace Dhgms.Nucleotide.Generators.Models { diff --git a/src/Dhgms.Nucleotide.Generators/Models/EntityGenerationModel.cs b/src/Dhgms.Nucleotide.Generators/Models/EntityGenerationModel.cs index c899b013..f002829c 100644 --- a/src/Dhgms.Nucleotide.Generators/Models/EntityGenerationModel.cs +++ b/src/Dhgms.Nucleotide.Generators/Models/EntityGenerationModel.cs @@ -1,8 +1,6 @@ -// ----------------------------------------------------------------------- -// -// TODO: Update copyright text. -// -// ----------------------------------------------------------------------- +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. using Dhgms.Nucleotide.Generators.PropertyInfo; diff --git a/src/Dhgms.Nucleotide.Generators/Models/IEntityGenerationModel.cs b/src/Dhgms.Nucleotide.Generators/Models/IEntityGenerationModel.cs index 55bef8ab..b1204723 100644 --- a/src/Dhgms.Nucleotide.Generators/Models/IEntityGenerationModel.cs +++ b/src/Dhgms.Nucleotide.Generators/Models/IEntityGenerationModel.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.PropertyInfo; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.PropertyInfo; namespace Dhgms.Nucleotide.Generators.Models { diff --git a/src/Dhgms.Nucleotide.Generators/Models/IInterfaceGenerationModel.cs b/src/Dhgms.Nucleotide.Generators/Models/IInterfaceGenerationModel.cs index 87119f93..6b38775d 100644 --- a/src/Dhgms.Nucleotide.Generators/Models/IInterfaceGenerationModel.cs +++ b/src/Dhgms.Nucleotide.Generators/Models/IInterfaceGenerationModel.cs @@ -1,4 +1,8 @@ -using System.Collections.Generic; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System.Collections.Generic; namespace Dhgms.Nucleotide.Generators.Models { diff --git a/src/Dhgms.Nucleotide.Generators/Models/IInterfaceMethodGenerationModel.cs b/src/Dhgms.Nucleotide.Generators/Models/IInterfaceMethodGenerationModel.cs index fe30f4f2..8044901a 100644 --- a/src/Dhgms.Nucleotide.Generators/Models/IInterfaceMethodGenerationModel.cs +++ b/src/Dhgms.Nucleotide.Generators/Models/IInterfaceMethodGenerationModel.cs @@ -1,6 +1,8 @@ -using System; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + using System.Collections.Generic; -using System.Text; namespace Dhgms.Nucleotide.Generators.Models { diff --git a/src/Dhgms.Nucleotide.Generators/Models/IMethodArgumentModel.cs b/src/Dhgms.Nucleotide.Generators/Models/IMethodArgumentModel.cs index 75d8f7b9..803d5ff9 100644 --- a/src/Dhgms.Nucleotide.Generators/Models/IMethodArgumentModel.cs +++ b/src/Dhgms.Nucleotide.Generators/Models/IMethodArgumentModel.cs @@ -1,4 +1,8 @@ -namespace Dhgms.Nucleotide.Generators.Models +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.Generators.Models { public interface IMethodArgumentModel : INameable { diff --git a/src/Dhgms.Nucleotide.Generators/Models/INameable.cs b/src/Dhgms.Nucleotide.Generators/Models/INameable.cs index a3dc96d3..b17f0fe0 100644 --- a/src/Dhgms.Nucleotide.Generators/Models/INameable.cs +++ b/src/Dhgms.Nucleotide.Generators/Models/INameable.cs @@ -1,4 +1,8 @@ -namespace Dhgms.Nucleotide.Generators.Models +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.Generators.Models { public interface INameable { diff --git a/src/Dhgms.Nucleotide.Generators/Models/INucleotideGenerationModel.cs b/src/Dhgms.Nucleotide.Generators/Models/INucleotideGenerationModel.cs index a2eecc6b..62e99a47 100644 --- a/src/Dhgms.Nucleotide.Generators/Models/INucleotideGenerationModel.cs +++ b/src/Dhgms.Nucleotide.Generators/Models/INucleotideGenerationModel.cs @@ -1,4 +1,8 @@ -namespace Dhgms.Nucleotide.Generators.Models +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.Generators.Models { /// /// Model that Generator Attributes should be attached to diff --git a/src/Dhgms.Nucleotide.Generators/Models/IObjectGenerationModel.cs b/src/Dhgms.Nucleotide.Generators/Models/IObjectGenerationModel.cs index 54f75bc4..0437a8d8 100644 --- a/src/Dhgms.Nucleotide.Generators/Models/IObjectGenerationModel.cs +++ b/src/Dhgms.Nucleotide.Generators/Models/IObjectGenerationModel.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.GeneratorProcessors; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.GeneratorProcessors; namespace Dhgms.Nucleotide.Generators.Models { diff --git a/src/Dhgms.Nucleotide.Generators/Models/IPropertyGenerationModel.cs b/src/Dhgms.Nucleotide.Generators/Models/IPropertyGenerationModel.cs index 0b5be018..f477c879 100644 --- a/src/Dhgms.Nucleotide.Generators/Models/IPropertyGenerationModel.cs +++ b/src/Dhgms.Nucleotide.Generators/Models/IPropertyGenerationModel.cs @@ -1,4 +1,8 @@ -namespace Dhgms.Nucleotide.Generators.Models +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.Generators.Models { public interface IPropertyGenerationModel : INameable { diff --git a/src/Dhgms.Nucleotide.Generators/Models/IServiceGenerationModel.cs b/src/Dhgms.Nucleotide.Generators/Models/IServiceGenerationModel.cs index cf2809b7..5950e656 100644 --- a/src/Dhgms.Nucleotide.Generators/Models/IServiceGenerationModel.cs +++ b/src/Dhgms.Nucleotide.Generators/Models/IServiceGenerationModel.cs @@ -1,4 +1,8 @@ -namespace Dhgms.Nucleotide.Generators.Models +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.Generators.Models { /// /// Generation Model for Service Boundaries diff --git a/src/Dhgms.Nucleotide.Generators/Models/KeyType.cs b/src/Dhgms.Nucleotide.Generators/Models/KeyType.cs index a87eed71..6fa64407 100644 --- a/src/Dhgms.Nucleotide.Generators/Models/KeyType.cs +++ b/src/Dhgms.Nucleotide.Generators/Models/KeyType.cs @@ -1,4 +1,8 @@ -namespace Dhgms.Nucleotide.Generators.Models +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.Generators.Models { public enum KeyType { diff --git a/src/Dhgms.Nucleotide.Generators/Models/NucleotideGenerationModel.cs b/src/Dhgms.Nucleotide.Generators/Models/NucleotideGenerationModel.cs index 8c14b4bd..eaccf8fd 100644 --- a/src/Dhgms.Nucleotide.Generators/Models/NucleotideGenerationModel.cs +++ b/src/Dhgms.Nucleotide.Generators/Models/NucleotideGenerationModel.cs @@ -1,4 +1,8 @@ -namespace Dhgms.Nucleotide.Generators.Models +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.Generators.Models { public sealed class NucleotideGenerationModel : INucleotideGenerationModel { diff --git a/src/Dhgms.Nucleotide.Generators/Models/PropertyAccessorFlags.cs b/src/Dhgms.Nucleotide.Generators/Models/PropertyAccessorFlags.cs index 279513eb..9ebf8a27 100644 --- a/src/Dhgms.Nucleotide.Generators/Models/PropertyAccessorFlags.cs +++ b/src/Dhgms.Nucleotide.Generators/Models/PropertyAccessorFlags.cs @@ -1,4 +1,8 @@ -namespace Dhgms.Nucleotide.Generators.Models +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.Generators.Models { /// /// Represents the access available to read\write a property. diff --git a/src/Dhgms.Nucleotide.Generators/PropertyInfo/ClrBooleanPropertyInfo.cs b/src/Dhgms.Nucleotide.Generators/PropertyInfo/ClrBooleanPropertyInfo.cs index be4d7b37..92b7ab34 100644 --- a/src/Dhgms.Nucleotide.Generators/PropertyInfo/ClrBooleanPropertyInfo.cs +++ b/src/Dhgms.Nucleotide.Generators/PropertyInfo/ClrBooleanPropertyInfo.cs @@ -1,9 +1,6 @@ -// -------------------------------------------------------------------------------------------------------------------- -// -// Licensed under GNU General Public License version 2 (GPLv2) -// -// -// -------------------------------------------------------------------------------------------------------------------- +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. using Dhgms.Nucleotide.Generators.Models; diff --git a/src/Dhgms.Nucleotide.Generators/PropertyInfo/ClrBytePropertyInfo.cs b/src/Dhgms.Nucleotide.Generators/PropertyInfo/ClrBytePropertyInfo.cs index 386b03c9..f78c4b48 100644 --- a/src/Dhgms.Nucleotide.Generators/PropertyInfo/ClrBytePropertyInfo.cs +++ b/src/Dhgms.Nucleotide.Generators/PropertyInfo/ClrBytePropertyInfo.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Models; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Models; namespace Dhgms.Nucleotide.Generators.PropertyInfo { diff --git a/src/Dhgms.Nucleotide.Generators/PropertyInfo/ClrCharPropertyInfo.cs b/src/Dhgms.Nucleotide.Generators/PropertyInfo/ClrCharPropertyInfo.cs index 7ac9481a..c5ab8674 100644 --- a/src/Dhgms.Nucleotide.Generators/PropertyInfo/ClrCharPropertyInfo.cs +++ b/src/Dhgms.Nucleotide.Generators/PropertyInfo/ClrCharPropertyInfo.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Models; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Models; namespace Dhgms.Nucleotide.Generators.PropertyInfo { diff --git a/src/Dhgms.Nucleotide.Generators/PropertyInfo/ClrDateTimePropertyInfo.cs b/src/Dhgms.Nucleotide.Generators/PropertyInfo/ClrDateTimePropertyInfo.cs index 8aa7caeb..9f19314d 100644 --- a/src/Dhgms.Nucleotide.Generators/PropertyInfo/ClrDateTimePropertyInfo.cs +++ b/src/Dhgms.Nucleotide.Generators/PropertyInfo/ClrDateTimePropertyInfo.cs @@ -1,8 +1,6 @@ -// ----------------------------------------------------------------------- -// -// TODO: Update copyright text. -// -// ----------------------------------------------------------------------- +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. using System; using Dhgms.Nucleotide.Generators.Models; diff --git a/src/Dhgms.Nucleotide.Generators/PropertyInfo/ClrDecimalPropertyInfo.cs b/src/Dhgms.Nucleotide.Generators/PropertyInfo/ClrDecimalPropertyInfo.cs index 74171dd4..c02f8a24 100644 --- a/src/Dhgms.Nucleotide.Generators/PropertyInfo/ClrDecimalPropertyInfo.cs +++ b/src/Dhgms.Nucleotide.Generators/PropertyInfo/ClrDecimalPropertyInfo.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Models; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Models; namespace Dhgms.Nucleotide.Generators.PropertyInfo { diff --git a/src/Dhgms.Nucleotide.Generators/PropertyInfo/ClrDoublePropertyInfo.cs b/src/Dhgms.Nucleotide.Generators/PropertyInfo/ClrDoublePropertyInfo.cs index 43e50aac..504ece45 100644 --- a/src/Dhgms.Nucleotide.Generators/PropertyInfo/ClrDoublePropertyInfo.cs +++ b/src/Dhgms.Nucleotide.Generators/PropertyInfo/ClrDoublePropertyInfo.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Models; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Models; namespace Dhgms.Nucleotide.Generators.PropertyInfo { diff --git a/src/Dhgms.Nucleotide.Generators/PropertyInfo/ClrGuidPropertyInfo.cs b/src/Dhgms.Nucleotide.Generators/PropertyInfo/ClrGuidPropertyInfo.cs index efd585fe..95223883 100644 --- a/src/Dhgms.Nucleotide.Generators/PropertyInfo/ClrGuidPropertyInfo.cs +++ b/src/Dhgms.Nucleotide.Generators/PropertyInfo/ClrGuidPropertyInfo.cs @@ -1,4 +1,8 @@ -using System; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using Dhgms.Nucleotide.Generators.Models; namespace Dhgms.Nucleotide.Generators.PropertyInfo diff --git a/src/Dhgms.Nucleotide.Generators/PropertyInfo/ClrSinglePropertyInfo.cs b/src/Dhgms.Nucleotide.Generators/PropertyInfo/ClrSinglePropertyInfo.cs index 96cc39b6..2a52dea5 100644 --- a/src/Dhgms.Nucleotide.Generators/PropertyInfo/ClrSinglePropertyInfo.cs +++ b/src/Dhgms.Nucleotide.Generators/PropertyInfo/ClrSinglePropertyInfo.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Models; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Models; namespace Dhgms.Nucleotide.Generators.PropertyInfo { diff --git a/src/Dhgms.Nucleotide.Generators/PropertyInfo/ClrStringPropertyInfo.cs b/src/Dhgms.Nucleotide.Generators/PropertyInfo/ClrStringPropertyInfo.cs index 1e0799f0..18486583 100644 --- a/src/Dhgms.Nucleotide.Generators/PropertyInfo/ClrStringPropertyInfo.cs +++ b/src/Dhgms.Nucleotide.Generators/PropertyInfo/ClrStringPropertyInfo.cs @@ -1,8 +1,6 @@ -// -------------------------------------------------------------------------------------------------------------------- -// -// Licensed under GNU General Public License version 2 (GPLv2) -// -// -------------------------------------------------------------------------------------------------------------------- +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. using Dhgms.Nucleotide.Generators.Models; diff --git a/src/Dhgms.Nucleotide.Generators/PropertyInfo/IPropertyWithRange.cs b/src/Dhgms.Nucleotide.Generators/PropertyInfo/IPropertyWithRange.cs index 540c22ad..0903f66a 100644 --- a/src/Dhgms.Nucleotide.Generators/PropertyInfo/IPropertyWithRange.cs +++ b/src/Dhgms.Nucleotide.Generators/PropertyInfo/IPropertyWithRange.cs @@ -1,4 +1,8 @@ -namespace Dhgms.Nucleotide.Generators.PropertyInfo +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.Generators.PropertyInfo { public interface IPropertyWithRange : IPropertyWithRangeAsString { diff --git a/src/Dhgms.Nucleotide.Generators/PropertyInfo/IPropertyWithRangeAsString.cs b/src/Dhgms.Nucleotide.Generators/PropertyInfo/IPropertyWithRangeAsString.cs index eff6e9f9..c7c707e2 100644 --- a/src/Dhgms.Nucleotide.Generators/PropertyInfo/IPropertyWithRangeAsString.cs +++ b/src/Dhgms.Nucleotide.Generators/PropertyInfo/IPropertyWithRangeAsString.cs @@ -1,4 +1,8 @@ -namespace Dhgms.Nucleotide.Generators.PropertyInfo +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +namespace Dhgms.Nucleotide.Generators.PropertyInfo { /// /// This represents a property with range, but allows extracting it for code generation as strings. diff --git a/src/Dhgms.Nucleotide.Generators/PropertyInfo/Integer16PropertyInfo.cs b/src/Dhgms.Nucleotide.Generators/PropertyInfo/Integer16PropertyInfo.cs index a79c699d..994fe0cc 100644 --- a/src/Dhgms.Nucleotide.Generators/PropertyInfo/Integer16PropertyInfo.cs +++ b/src/Dhgms.Nucleotide.Generators/PropertyInfo/Integer16PropertyInfo.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Models; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Models; namespace Dhgms.Nucleotide.Generators.PropertyInfo { diff --git a/src/Dhgms.Nucleotide.Generators/PropertyInfo/Integer32PropertyInfo.cs b/src/Dhgms.Nucleotide.Generators/PropertyInfo/Integer32PropertyInfo.cs index d6166225..69be7705 100644 --- a/src/Dhgms.Nucleotide.Generators/PropertyInfo/Integer32PropertyInfo.cs +++ b/src/Dhgms.Nucleotide.Generators/PropertyInfo/Integer32PropertyInfo.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Models; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Models; namespace Dhgms.Nucleotide.Generators.PropertyInfo { diff --git a/src/Dhgms.Nucleotide.Generators/PropertyInfo/Integer64PropertyInfo.cs b/src/Dhgms.Nucleotide.Generators/PropertyInfo/Integer64PropertyInfo.cs index 838fc3e7..936b03a2 100644 --- a/src/Dhgms.Nucleotide.Generators/PropertyInfo/Integer64PropertyInfo.cs +++ b/src/Dhgms.Nucleotide.Generators/PropertyInfo/Integer64PropertyInfo.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Models; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Models; namespace Dhgms.Nucleotide.Generators.PropertyInfo { diff --git a/src/Dhgms.Nucleotide.Generators/PropertyInfo/NumericPropertyInfo.cs b/src/Dhgms.Nucleotide.Generators/PropertyInfo/NumericPropertyInfo.cs index c7fadecf..7e0f0bba 100644 --- a/src/Dhgms.Nucleotide.Generators/PropertyInfo/NumericPropertyInfo.cs +++ b/src/Dhgms.Nucleotide.Generators/PropertyInfo/NumericPropertyInfo.cs @@ -1,4 +1,8 @@ -using System; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using Dhgms.Nucleotide.Generators.Models; namespace Dhgms.Nucleotide.Generators.PropertyInfo diff --git a/src/Dhgms.Nucleotide.Generators/PropertyInfo/PropertyInfoBase.cs b/src/Dhgms.Nucleotide.Generators/PropertyInfo/PropertyInfoBase.cs index 85ff140d..ce604850 100644 --- a/src/Dhgms.Nucleotide.Generators/PropertyInfo/PropertyInfoBase.cs +++ b/src/Dhgms.Nucleotide.Generators/PropertyInfo/PropertyInfoBase.cs @@ -1,12 +1,6 @@ -// -------------------------------------------------------------------------------------------------------------------- -// -// Licensed under GNU General Public License version 2 (GPLv2) -// -// -// base class for property information types. used for defining properties -// in information, searchfilter and viewfilter classes -// -// -------------------------------------------------------------------------------------------------------------------- +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. using System; using System.Diagnostics.CodeAnalysis; diff --git a/src/Dhgms.Nucleotide.Generators/PropertyInfo/UnsignedInteger16PropertyInfo.cs b/src/Dhgms.Nucleotide.Generators/PropertyInfo/UnsignedInteger16PropertyInfo.cs index 69a08b4c..e3fb0734 100644 --- a/src/Dhgms.Nucleotide.Generators/PropertyInfo/UnsignedInteger16PropertyInfo.cs +++ b/src/Dhgms.Nucleotide.Generators/PropertyInfo/UnsignedInteger16PropertyInfo.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Models; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Models; namespace Dhgms.Nucleotide.Generators.PropertyInfo { diff --git a/src/Dhgms.Nucleotide.Generators/PropertyInfo/UnsignedInteger32PropertyInfo.cs b/src/Dhgms.Nucleotide.Generators/PropertyInfo/UnsignedInteger32PropertyInfo.cs index 3bbe4c4d..e0b539f7 100644 --- a/src/Dhgms.Nucleotide.Generators/PropertyInfo/UnsignedInteger32PropertyInfo.cs +++ b/src/Dhgms.Nucleotide.Generators/PropertyInfo/UnsignedInteger32PropertyInfo.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Models; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Models; namespace Dhgms.Nucleotide.Generators.PropertyInfo { diff --git a/src/Dhgms.Nucleotide.Generators/PropertyInfo/UnsignedInteger64PropertyInfo.cs b/src/Dhgms.Nucleotide.Generators/PropertyInfo/UnsignedInteger64PropertyInfo.cs index 51a4391d..0368ff5a 100644 --- a/src/Dhgms.Nucleotide.Generators/PropertyInfo/UnsignedInteger64PropertyInfo.cs +++ b/src/Dhgms.Nucleotide.Generators/PropertyInfo/UnsignedInteger64PropertyInfo.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Models; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Models; namespace Dhgms.Nucleotide.Generators.PropertyInfo { diff --git a/src/Dhgms.Nucleotide.Generators/PropertyInfo/UnsignedInteger8PropertyInfo.cs b/src/Dhgms.Nucleotide.Generators/PropertyInfo/UnsignedInteger8PropertyInfo.cs index 52bb1853..0b10017c 100644 --- a/src/Dhgms.Nucleotide.Generators/PropertyInfo/UnsignedInteger8PropertyInfo.cs +++ b/src/Dhgms.Nucleotide.Generators/PropertyInfo/UnsignedInteger8PropertyInfo.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Models; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Models; namespace Dhgms.Nucleotide.Generators.PropertyInfo { diff --git a/src/Dhgms.Nucleotide.Generators/RoslynGenerationHelpers.cs b/src/Dhgms.Nucleotide.Generators/RoslynGenerationHelpers.cs index 69eacb58..5f24bec3 100644 --- a/src/Dhgms.Nucleotide.Generators/RoslynGenerationHelpers.cs +++ b/src/Dhgms.Nucleotide.Generators/RoslynGenerationHelpers.cs @@ -1,4 +1,8 @@ -using System; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; diff --git a/src/Dhgms.Nucleotide.ModelTests/ModelGenerationDetails.cs b/src/Dhgms.Nucleotide.ModelTests/ModelGenerationDetails.cs index 3d02defa..cfc60bb2 100644 --- a/src/Dhgms.Nucleotide.ModelTests/ModelGenerationDetails.cs +++ b/src/Dhgms.Nucleotide.ModelTests/ModelGenerationDetails.cs @@ -1,6 +1,11 @@ -using System.Collections.Generic; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System.Collections.Generic; using Dhgms.Nucleotide.Generators.Features.Database; using Dhgms.Nucleotide.Generators.Features.EntityFramework; +using Dhgms.Nucleotide.Generators.Features.ReactiveUI.Wpf; using Dhgms.Nucleotide.Generators.Models; using Dhgms.Nucleotide.Generators.PropertyInfo; @@ -197,4 +202,15 @@ public static class SampleEntityFrameworkModelGenerationModel }, }; } + + public class ReactiveUIViewForViewModel : INucleotideGenerationModel + { + public ReactiveWindowGenerationModel[] EntityGenerationModel => new [] + { + new ReactiveWindowGenerationModel("Address", "global::Dhgms.Nucleotide.GenerationTests.ViewModels.IAddressViewModel") + }; + + public string RootNamespace => "Dhgms.Nucleotide.GenerationTests"; + } + } diff --git a/src/Dhgms.Nucleotide.ModelTests/TestCommandFactoryInterfaceGenerator.cs b/src/Dhgms.Nucleotide.ModelTests/TestCommandFactoryInterfaceGenerator.cs index 7b1c8ed9..85bfc8a8 100644 --- a/src/Dhgms.Nucleotide.ModelTests/TestCommandFactoryInterfaceGenerator.cs +++ b/src/Dhgms.Nucleotide.ModelTests/TestCommandFactoryInterfaceGenerator.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Features.Cqrs; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Features.Cqrs; using Dhgms.Nucleotide.Generators.Models; using Microsoft.CodeAnalysis; diff --git a/src/Dhgms.Nucleotide.ModelTests/TestCommandInterfaceGenerator.cs b/src/Dhgms.Nucleotide.ModelTests/TestCommandInterfaceGenerator.cs index 8ddee5fe..7784405d 100644 --- a/src/Dhgms.Nucleotide.ModelTests/TestCommandInterfaceGenerator.cs +++ b/src/Dhgms.Nucleotide.ModelTests/TestCommandInterfaceGenerator.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Features.Cqrs; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Features.Cqrs; using Dhgms.Nucleotide.Generators.Models; using Microsoft.CodeAnalysis; diff --git a/src/Dhgms.Nucleotide.ModelTests/TestCrudControllerLoggerMessageActionGenerator.cs b/src/Dhgms.Nucleotide.ModelTests/TestCrudControllerLoggerMessageActionGenerator.cs index b289f83f..1f8d8f1e 100644 --- a/src/Dhgms.Nucleotide.ModelTests/TestCrudControllerLoggerMessageActionGenerator.cs +++ b/src/Dhgms.Nucleotide.ModelTests/TestCrudControllerLoggerMessageActionGenerator.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Features.Logging; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Features.Logging; using Dhgms.Nucleotide.Generators.Models; using Dhgms.Nucleotide.ModelTests; using Microsoft.CodeAnalysis; diff --git a/src/Dhgms.Nucleotide.ModelTests/TestEntityFrameworkDbContextGenerator.cs b/src/Dhgms.Nucleotide.ModelTests/TestEntityFrameworkDbContextGenerator.cs index 341d4f14..59031943 100644 --- a/src/Dhgms.Nucleotide.ModelTests/TestEntityFrameworkDbContextGenerator.cs +++ b/src/Dhgms.Nucleotide.ModelTests/TestEntityFrameworkDbContextGenerator.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Features.EntityFramework; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Features.EntityFramework; using Dhgms.Nucleotide.Generators.Models; using Microsoft.CodeAnalysis; diff --git a/src/Dhgms.Nucleotide.ModelTests/TestEntityFrameworkEntityTypeConfigurationGenerator.cs b/src/Dhgms.Nucleotide.ModelTests/TestEntityFrameworkEntityTypeConfigurationGenerator.cs index 6350ffaa..6e30ea08 100644 --- a/src/Dhgms.Nucleotide.ModelTests/TestEntityFrameworkEntityTypeConfigurationGenerator.cs +++ b/src/Dhgms.Nucleotide.ModelTests/TestEntityFrameworkEntityTypeConfigurationGenerator.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Features.EntityFramework; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Features.EntityFramework; using Dhgms.Nucleotide.Generators.Models; using Microsoft.CodeAnalysis; diff --git a/src/Dhgms.Nucleotide.ModelTests/TestEntityFrameworkModelGenerator.cs b/src/Dhgms.Nucleotide.ModelTests/TestEntityFrameworkModelGenerator.cs index 06f20d06..f2f23979 100644 --- a/src/Dhgms.Nucleotide.ModelTests/TestEntityFrameworkModelGenerator.cs +++ b/src/Dhgms.Nucleotide.ModelTests/TestEntityFrameworkModelGenerator.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Features.EntityFramework; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Features.EntityFramework; using Dhgms.Nucleotide.Generators.Models; using Microsoft.CodeAnalysis; diff --git a/src/Dhgms.Nucleotide.ModelTests/TestForiegnKeyInterfaceGenerator.cs b/src/Dhgms.Nucleotide.ModelTests/TestForiegnKeyInterfaceGenerator.cs index 3a65652f..3bf17320 100644 --- a/src/Dhgms.Nucleotide.ModelTests/TestForiegnKeyInterfaceGenerator.cs +++ b/src/Dhgms.Nucleotide.ModelTests/TestForiegnKeyInterfaceGenerator.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Features.Database; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Features.Database; using Dhgms.Nucleotide.Generators.Models; using Microsoft.CodeAnalysis; diff --git a/src/Dhgms.Nucleotide.ModelTests/TestKeyedModelClassGenerator.cs b/src/Dhgms.Nucleotide.ModelTests/TestKeyedModelClassGenerator.cs index 8a58eb2f..1741f28b 100644 --- a/src/Dhgms.Nucleotide.ModelTests/TestKeyedModelClassGenerator.cs +++ b/src/Dhgms.Nucleotide.ModelTests/TestKeyedModelClassGenerator.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Features.Model; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Features.Model; using Dhgms.Nucleotide.Generators.Models; using Microsoft.CodeAnalysis; diff --git a/src/Dhgms.Nucleotide.ModelTests/TestKeyedModelInterfaceGenerator.cs b/src/Dhgms.Nucleotide.ModelTests/TestKeyedModelInterfaceGenerator.cs index 7883581a..fc4ed7cd 100644 --- a/src/Dhgms.Nucleotide.ModelTests/TestKeyedModelInterfaceGenerator.cs +++ b/src/Dhgms.Nucleotide.ModelTests/TestKeyedModelInterfaceGenerator.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Features.Model; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Features.Model; using Dhgms.Nucleotide.Generators.Models; using Microsoft.CodeAnalysis; diff --git a/src/Dhgms.Nucleotide.ModelTests/TestMvcControllerGenerator.cs b/src/Dhgms.Nucleotide.ModelTests/TestMvcControllerGenerator.cs index e084bfc8..8a1ba775 100644 --- a/src/Dhgms.Nucleotide.ModelTests/TestMvcControllerGenerator.cs +++ b/src/Dhgms.Nucleotide.ModelTests/TestMvcControllerGenerator.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Features.Mvc; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Features.Mvc; using Dhgms.Nucleotide.Generators.Models; using Microsoft.CodeAnalysis; diff --git a/src/Dhgms.Nucleotide.ModelTests/TestQueryFactoryInterfaceGenerator.cs b/src/Dhgms.Nucleotide.ModelTests/TestQueryFactoryInterfaceGenerator.cs index fe817c84..fe8a0c0a 100644 --- a/src/Dhgms.Nucleotide.ModelTests/TestQueryFactoryInterfaceGenerator.cs +++ b/src/Dhgms.Nucleotide.ModelTests/TestQueryFactoryInterfaceGenerator.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Features.Cqrs; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Features.Cqrs; using Dhgms.Nucleotide.Generators.Models; using Microsoft.CodeAnalysis; diff --git a/src/Dhgms.Nucleotide.ModelTests/TestQueryInterfaceGenerator.cs b/src/Dhgms.Nucleotide.ModelTests/TestQueryInterfaceGenerator.cs index c27a7c22..702b472e 100644 --- a/src/Dhgms.Nucleotide.ModelTests/TestQueryInterfaceGenerator.cs +++ b/src/Dhgms.Nucleotide.ModelTests/TestQueryInterfaceGenerator.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Features.Cqrs; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Features.Cqrs; using Dhgms.Nucleotide.Generators.Models; using Microsoft.CodeAnalysis; diff --git a/src/Dhgms.Nucleotide.ModelTests/TestReactiveMetroWindowClassGenerator.cs b/src/Dhgms.Nucleotide.ModelTests/TestReactiveMetroWindowClassGenerator.cs new file mode 100644 index 00000000..256b29ad --- /dev/null +++ b/src/Dhgms.Nucleotide.ModelTests/TestReactiveMetroWindowClassGenerator.cs @@ -0,0 +1,14 @@ +using Dhgms.Nucleotide.Generators.Features.ReactiveUI.Wpf; +using Dhgms.Nucleotide.Generators.Models; +using Dhgms.Nucleotide.ModelTests; +using Microsoft.CodeAnalysis; + +namespace Dhgms.Nucleotide.SampleGenerator +{ + [Generator] + public sealed class TestReactiveMetroWindowClassGenerator : ReactiveMetroWindowClassGenerator + { + protected override INucleotideGenerationModel NucleotideGenerationModel => + new ReactiveUIViewForViewModel(); + } +} diff --git a/src/Dhgms.Nucleotide.ModelTests/TestReactiveSimpleChildWindowClassGenerator.cs b/src/Dhgms.Nucleotide.ModelTests/TestReactiveSimpleChildWindowClassGenerator.cs new file mode 100644 index 00000000..594e21e4 --- /dev/null +++ b/src/Dhgms.Nucleotide.ModelTests/TestReactiveSimpleChildWindowClassGenerator.cs @@ -0,0 +1,14 @@ +using Dhgms.Nucleotide.Generators.Features.ReactiveUI.Wpf; +using Dhgms.Nucleotide.Generators.Models; +using Dhgms.Nucleotide.ModelTests; +using Microsoft.CodeAnalysis; + +namespace Dhgms.Nucleotide.SampleGenerator +{ + [Generator] + public sealed class TestReactiveSimpleChildWindowClassGenerator : ReactiveSimpleChildWindowClassGenerator + { + protected override INucleotideGenerationModel NucleotideGenerationModel => + new ReactiveUIViewForViewModel(); + } +} diff --git a/src/Dhgms.Nucleotide.ModelTests/TestReactiveWindowClassGenerator.cs b/src/Dhgms.Nucleotide.ModelTests/TestReactiveWindowClassGenerator.cs new file mode 100644 index 00000000..19340ae0 --- /dev/null +++ b/src/Dhgms.Nucleotide.ModelTests/TestReactiveWindowClassGenerator.cs @@ -0,0 +1,15 @@ +using Dhgms.Nucleotide.Generators.Features.ReactiveUI; +using Dhgms.Nucleotide.Generators.Features.ReactiveUI.Wpf; +using Dhgms.Nucleotide.Generators.Models; +using Dhgms.Nucleotide.ModelTests; +using Microsoft.CodeAnalysis; + +namespace Dhgms.Nucleotide.SampleGenerator +{ + [Generator] + public sealed class TestReactiveWindowClassGenerator : ReactiveWindowClassGenerator + { + protected override INucleotideGenerationModel NucleotideGenerationModel => + new ReactiveUIViewForViewModel(); + } +} diff --git a/src/Dhgms.Nucleotide.ModelTests/TestReferencedByEntityGenerator.cs b/src/Dhgms.Nucleotide.ModelTests/TestReferencedByEntityGenerator.cs index 60bc3fa9..8dab38b8 100644 --- a/src/Dhgms.Nucleotide.ModelTests/TestReferencedByEntityGenerator.cs +++ b/src/Dhgms.Nucleotide.ModelTests/TestReferencedByEntityGenerator.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Features.Database; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Features.Database; using Dhgms.Nucleotide.Generators.Models; using Microsoft.CodeAnalysis; diff --git a/src/Dhgms.Nucleotide.ModelTests/TestRequestDtoClassGenerator.cs b/src/Dhgms.Nucleotide.ModelTests/TestRequestDtoClassGenerator.cs index 6774ae29..37c2b452 100644 --- a/src/Dhgms.Nucleotide.ModelTests/TestRequestDtoClassGenerator.cs +++ b/src/Dhgms.Nucleotide.ModelTests/TestRequestDtoClassGenerator.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Features.Dto; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Features.Dto; using Dhgms.Nucleotide.Generators.Models; using Microsoft.CodeAnalysis; diff --git a/src/Dhgms.Nucleotide.ModelTests/TestResponseDtoClassGenerator.cs b/src/Dhgms.Nucleotide.ModelTests/TestResponseDtoClassGenerator.cs index c9f2be06..243dcdb0 100644 --- a/src/Dhgms.Nucleotide.ModelTests/TestResponseDtoClassGenerator.cs +++ b/src/Dhgms.Nucleotide.ModelTests/TestResponseDtoClassGenerator.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Features.Dto; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Features.Dto; using Dhgms.Nucleotide.Generators.Models; using Microsoft.CodeAnalysis; diff --git a/src/Dhgms.Nucleotide.ModelTests/TestServiceInterfaceGenerator.cs b/src/Dhgms.Nucleotide.ModelTests/TestServiceInterfaceGenerator.cs index 72472fdb..38db1c71 100644 --- a/src/Dhgms.Nucleotide.ModelTests/TestServiceInterfaceGenerator.cs +++ b/src/Dhgms.Nucleotide.ModelTests/TestServiceInterfaceGenerator.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Generators; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Generators; using Dhgms.Nucleotide.Generators.Models; using Microsoft.CodeAnalysis; diff --git a/src/Dhgms.Nucleotide.ModelTests/TestUnkeyedModelClassGenerator.cs b/src/Dhgms.Nucleotide.ModelTests/TestUnkeyedModelClassGenerator.cs index 897bc11a..48f1da67 100644 --- a/src/Dhgms.Nucleotide.ModelTests/TestUnkeyedModelClassGenerator.cs +++ b/src/Dhgms.Nucleotide.ModelTests/TestUnkeyedModelClassGenerator.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Features.Model; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Features.Model; using Dhgms.Nucleotide.Generators.Models; using Microsoft.CodeAnalysis; diff --git a/src/Dhgms.Nucleotide.ModelTests/TestUnkeyedModelInterfaceGenerator.cs b/src/Dhgms.Nucleotide.ModelTests/TestUnkeyedModelInterfaceGenerator.cs index 241e335c..ffcaff4d 100644 --- a/src/Dhgms.Nucleotide.ModelTests/TestUnkeyedModelInterfaceGenerator.cs +++ b/src/Dhgms.Nucleotide.ModelTests/TestUnkeyedModelInterfaceGenerator.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Features.Model; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Features.Model; using Dhgms.Nucleotide.Generators.Models; using Microsoft.CodeAnalysis; diff --git a/src/Dhgms.Nucleotide.ModelTests/TestWebApiClientGenerator.cs b/src/Dhgms.Nucleotide.ModelTests/TestWebApiClientGenerator.cs index 64988de8..1aecf2c6 100644 --- a/src/Dhgms.Nucleotide.ModelTests/TestWebApiClientGenerator.cs +++ b/src/Dhgms.Nucleotide.ModelTests/TestWebApiClientGenerator.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Features.WebApi; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Features.WebApi; using Dhgms.Nucleotide.Generators.Models; using Microsoft.CodeAnalysis; diff --git a/src/Dhgms.Nucleotide.ModelTests/TestWebApiServiceGenerator.cs b/src/Dhgms.Nucleotide.ModelTests/TestWebApiServiceGenerator.cs index 8afc6d3b..3c8e7020 100644 --- a/src/Dhgms.Nucleotide.ModelTests/TestWebApiServiceGenerator.cs +++ b/src/Dhgms.Nucleotide.ModelTests/TestWebApiServiceGenerator.cs @@ -1,4 +1,8 @@ -using Dhgms.Nucleotide.Generators.Features.WebApi; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using Dhgms.Nucleotide.Generators.Features.WebApi; using Dhgms.Nucleotide.Generators.Models; using Microsoft.CodeAnalysis; diff --git a/src/Dhgms.Nucleotide.UnitTests/Generators/BaseGeneratorTests.cs b/src/Dhgms.Nucleotide.UnitTests/Generators/BaseGeneratorTests.cs index 224fcaf4..4cc1d961 100644 --- a/src/Dhgms.Nucleotide.UnitTests/Generators/BaseGeneratorTests.cs +++ b/src/Dhgms.Nucleotide.UnitTests/Generators/BaseGeneratorTests.cs @@ -1,11 +1,14 @@ -using System; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Reflection; using System.Threading.Tasks; -using Dhgms.Nucleotide.Generators; using Dhgms.Nucleotide.Generators.GeneratorProcessors; using Dhgms.Nucleotide.Generators.Generators; using Microsoft.CodeAnalysis; diff --git a/src/Dhgms.Nucleotide.UnitTests/Generators/Cqrs/CommandFactoryInterfaceGeneratorTests.cs b/src/Dhgms.Nucleotide.UnitTests/Generators/Cqrs/CommandFactoryInterfaceGeneratorTests.cs index 1308c9e9..8d01be88 100644 --- a/src/Dhgms.Nucleotide.UnitTests/Generators/Cqrs/CommandFactoryInterfaceGeneratorTests.cs +++ b/src/Dhgms.Nucleotide.UnitTests/Generators/Cqrs/CommandFactoryInterfaceGeneratorTests.cs @@ -1,14 +1,13 @@ -using System; -using System.Collections.Generic; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using System.Diagnostics.CodeAnalysis; -using System.Text; -using Dhgms.Nucleotide.Generators; using Dhgms.Nucleotide.Generators.Features.Cqrs; using Dhgms.Nucleotide.Generators.Models; using Dhgms.Nucleotide.ModelTests; using Microsoft.CodeAnalysis; -using Moq; -using Xunit; using Xunit.Abstractions; namespace Dhgms.Nucleotide.UnitTests.Generators diff --git a/src/Dhgms.Nucleotide.UnitTests/Generators/Cqrs/CommandInterfaceGeneratorTests.cs b/src/Dhgms.Nucleotide.UnitTests/Generators/Cqrs/CommandInterfaceGeneratorTests.cs index 00a75b4e..ba33a0a7 100644 --- a/src/Dhgms.Nucleotide.UnitTests/Generators/Cqrs/CommandInterfaceGeneratorTests.cs +++ b/src/Dhgms.Nucleotide.UnitTests/Generators/Cqrs/CommandInterfaceGeneratorTests.cs @@ -1,14 +1,13 @@ -using System; -using System.Collections.Generic; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using System.Diagnostics.CodeAnalysis; -using System.Text; -using Dhgms.Nucleotide.Generators; using Dhgms.Nucleotide.Generators.Features.Cqrs; using Dhgms.Nucleotide.Generators.Models; using Dhgms.Nucleotide.ModelTests; using Microsoft.CodeAnalysis; -using Moq; -using Xunit; using Xunit.Abstractions; namespace Dhgms.Nucleotide.UnitTests.Generators diff --git a/src/Dhgms.Nucleotide.UnitTests/Generators/Cqrs/QueryFactoryInterfaceGeneratorTests.cs b/src/Dhgms.Nucleotide.UnitTests/Generators/Cqrs/QueryFactoryInterfaceGeneratorTests.cs index 49ac4a71..c8acb50a 100644 --- a/src/Dhgms.Nucleotide.UnitTests/Generators/Cqrs/QueryFactoryInterfaceGeneratorTests.cs +++ b/src/Dhgms.Nucleotide.UnitTests/Generators/Cqrs/QueryFactoryInterfaceGeneratorTests.cs @@ -1,14 +1,13 @@ -using System; -using System.Collections.Generic; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using System.Diagnostics.CodeAnalysis; -using System.Text; -using Dhgms.Nucleotide.Generators; using Dhgms.Nucleotide.Generators.Features.Cqrs; using Dhgms.Nucleotide.Generators.Models; using Dhgms.Nucleotide.ModelTests; using Microsoft.CodeAnalysis; -using Moq; -using Xunit; using Xunit.Abstractions; namespace Dhgms.Nucleotide.UnitTests.Generators diff --git a/src/Dhgms.Nucleotide.UnitTests/Generators/Cqrs/QueryInterfaceGeneratorTests.cs b/src/Dhgms.Nucleotide.UnitTests/Generators/Cqrs/QueryInterfaceGeneratorTests.cs index cb14addf..aac8bf46 100644 --- a/src/Dhgms.Nucleotide.UnitTests/Generators/Cqrs/QueryInterfaceGeneratorTests.cs +++ b/src/Dhgms.Nucleotide.UnitTests/Generators/Cqrs/QueryInterfaceGeneratorTests.cs @@ -1,13 +1,13 @@ -using System; -using System.Collections.Generic; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using System.Diagnostics.CodeAnalysis; -using Dhgms.Nucleotide.Generators; using Dhgms.Nucleotide.Generators.Features.Cqrs; using Dhgms.Nucleotide.Generators.Models; using Dhgms.Nucleotide.ModelTests; using Microsoft.CodeAnalysis; -using Moq; -using Xunit; using Xunit.Abstractions; namespace Dhgms.Nucleotide.UnitTests.Generators diff --git a/src/Dhgms.Nucleotide.UnitTests/Generators/Database/ForiegnKeyInterfaceGeneratorTests.cs b/src/Dhgms.Nucleotide.UnitTests/Generators/Database/ForiegnKeyInterfaceGeneratorTests.cs index 4c7a452c..e6125556 100644 --- a/src/Dhgms.Nucleotide.UnitTests/Generators/Database/ForiegnKeyInterfaceGeneratorTests.cs +++ b/src/Dhgms.Nucleotide.UnitTests/Generators/Database/ForiegnKeyInterfaceGeneratorTests.cs @@ -1,7 +1,10 @@ -using System; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using System.Diagnostics.CodeAnalysis; using Dhgms.Nucleotide.Generators.Features.Database; -using Dhgms.Nucleotide.Generators.Models; using Dhgms.Nucleotide.ModelTests; using Microsoft.CodeAnalysis; using Xunit.Abstractions; diff --git a/src/Dhgms.Nucleotide.UnitTests/Generators/Database/ReferencedByEntityGeneratorTests.cs b/src/Dhgms.Nucleotide.UnitTests/Generators/Database/ReferencedByEntityGeneratorTests.cs index 37de8dcc..c3632a4a 100644 --- a/src/Dhgms.Nucleotide.UnitTests/Generators/Database/ReferencedByEntityGeneratorTests.cs +++ b/src/Dhgms.Nucleotide.UnitTests/Generators/Database/ReferencedByEntityGeneratorTests.cs @@ -1,7 +1,10 @@ -using System; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using System.Diagnostics.CodeAnalysis; using Dhgms.Nucleotide.Generators.Features.Database; -using Dhgms.Nucleotide.Generators.Models; using Dhgms.Nucleotide.ModelTests; using Microsoft.CodeAnalysis; using Xunit.Abstractions; diff --git a/src/Dhgms.Nucleotide.UnitTests/Generators/Features/EntityFrameworkDbContextGeneratorTests.cs b/src/Dhgms.Nucleotide.UnitTests/Generators/Features/EntityFrameworkDbContextGeneratorTests.cs index 522485fb..b04075f5 100644 --- a/src/Dhgms.Nucleotide.UnitTests/Generators/Features/EntityFrameworkDbContextGeneratorTests.cs +++ b/src/Dhgms.Nucleotide.UnitTests/Generators/Features/EntityFrameworkDbContextGeneratorTests.cs @@ -1,13 +1,13 @@ -using System; -using System.Collections.Generic; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using System.Diagnostics.CodeAnalysis; -using Dhgms.Nucleotide.Generators; using Dhgms.Nucleotide.Generators.Features.EntityFramework; using Dhgms.Nucleotide.Generators.Models; using Dhgms.Nucleotide.ModelTests; using Microsoft.CodeAnalysis; -using Moq; -using Xunit; using Xunit.Abstractions; namespace Dhgms.Nucleotide.UnitTests.Generators diff --git a/src/Dhgms.Nucleotide.UnitTests/Generators/Features/EntityFrameworkEntityTypeConfigurationGeneratorTests.cs b/src/Dhgms.Nucleotide.UnitTests/Generators/Features/EntityFrameworkEntityTypeConfigurationGeneratorTests.cs index 573a6d8d..cdc8e488 100644 --- a/src/Dhgms.Nucleotide.UnitTests/Generators/Features/EntityFrameworkEntityTypeConfigurationGeneratorTests.cs +++ b/src/Dhgms.Nucleotide.UnitTests/Generators/Features/EntityFrameworkEntityTypeConfigurationGeneratorTests.cs @@ -1,4 +1,8 @@ -using System; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using System.Diagnostics.CodeAnalysis; using Dhgms.Nucleotide.Generators.Features.EntityFramework; using Dhgms.Nucleotide.ModelTests; diff --git a/src/Dhgms.Nucleotide.UnitTests/Generators/Features/EntityFrameworkModelGeneratorTests.cs b/src/Dhgms.Nucleotide.UnitTests/Generators/Features/EntityFrameworkModelGeneratorTests.cs index c584d2d1..d3fba543 100644 --- a/src/Dhgms.Nucleotide.UnitTests/Generators/Features/EntityFrameworkModelGeneratorTests.cs +++ b/src/Dhgms.Nucleotide.UnitTests/Generators/Features/EntityFrameworkModelGeneratorTests.cs @@ -1,13 +1,12 @@ -using System; -using System.Collections.Generic; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using System.Diagnostics.CodeAnalysis; -using Dhgms.Nucleotide.Generators; using Dhgms.Nucleotide.Generators.Features.EntityFramework; -using Dhgms.Nucleotide.Generators.Models; using Dhgms.Nucleotide.ModelTests; using Microsoft.CodeAnalysis; -using Moq; -using Xunit; using Xunit.Abstractions; namespace Dhgms.Nucleotide.UnitTests.Generators diff --git a/src/Dhgms.Nucleotide.UnitTests/Generators/Features/Logging/CrudControllerLoggerMessageActionGeneratorTests.cs b/src/Dhgms.Nucleotide.UnitTests/Generators/Features/Logging/CrudControllerLoggerMessageActionGeneratorTests.cs index 989ec2b6..0999ea5a 100644 --- a/src/Dhgms.Nucleotide.UnitTests/Generators/Features/Logging/CrudControllerLoggerMessageActionGeneratorTests.cs +++ b/src/Dhgms.Nucleotide.UnitTests/Generators/Features/Logging/CrudControllerLoggerMessageActionGeneratorTests.cs @@ -1,4 +1,8 @@ -using System; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using System.Diagnostics.CodeAnalysis; using Dhgms.Nucleotide.Generators.Features.Logging; using Dhgms.Nucleotide.Generators.Models; diff --git a/src/Dhgms.Nucleotide.UnitTests/Generators/Features/ReactiveUI/ReactiveWindowClassGeneratorTests.cs b/src/Dhgms.Nucleotide.UnitTests/Generators/Features/ReactiveUI/ReactiveWindowClassGeneratorTests.cs new file mode 100644 index 00000000..478ad08f --- /dev/null +++ b/src/Dhgms.Nucleotide.UnitTests/Generators/Features/ReactiveUI/ReactiveWindowClassGeneratorTests.cs @@ -0,0 +1,38 @@ +using System; +using System.Diagnostics.CodeAnalysis; +using Dhgms.Nucleotide.Generators.Features.ReactiveUI; +using Dhgms.Nucleotide.Generators.Features.ReactiveUI.Wpf; +using Dhgms.Nucleotide.SampleGenerator; +using Microsoft.CodeAnalysis; +using Xunit.Abstractions; + +namespace Dhgms.Nucleotide.UnitTests.Generators.Features.ReactiveUI +{ + [ExcludeFromCodeCoverage] + public static class ReactiveWindowClassGeneratorTests + { + public sealed class ConstructorMethod : BaseGeneratorTests.BaseConstructorMethod + { + public ConstructorMethod(ITestOutputHelper output) : base(output) + { + } + + protected override Func GetFactory() + { + return data => new TestReactiveWindowClassGenerator(); + } + } + + public sealed class GenerateAsyncMethod : BaseGeneratorTests.BaseGenerateAsyncMethod + { + public GenerateAsyncMethod(ITestOutputHelper output) : base(output) + { + } + + protected override Func GetFactory() + { + return data => new TestReactiveWindowClassGenerator(); + } + } + } +} diff --git a/src/Dhgms.Nucleotide.UnitTests/Generators/Features/ReactiveUI/WPF/ReactiveMetroWindowClassGeneratorTests.cs b/src/Dhgms.Nucleotide.UnitTests/Generators/Features/ReactiveUI/WPF/ReactiveMetroWindowClassGeneratorTests.cs new file mode 100644 index 00000000..28bc88a1 --- /dev/null +++ b/src/Dhgms.Nucleotide.UnitTests/Generators/Features/ReactiveUI/WPF/ReactiveMetroWindowClassGeneratorTests.cs @@ -0,0 +1,37 @@ +using System; +using System.Diagnostics.CodeAnalysis; +using Dhgms.Nucleotide.Generators.Features.ReactiveUI.Wpf; +using Dhgms.Nucleotide.SampleGenerator; +using Microsoft.CodeAnalysis; +using Xunit.Abstractions; + +namespace Dhgms.Nucleotide.UnitTests.Generators.Features.ReactiveUI.WPF +{ + [ExcludeFromCodeCoverage] + public static class ReactiveMetroWindowClassGeneratorTests + { + public sealed class ConstructorMethod : BaseGeneratorTests.BaseConstructorMethod + { + public ConstructorMethod(ITestOutputHelper output) : base(output) + { + } + + protected override Func GetFactory() + { + return data => new TestReactiveMetroWindowClassGenerator(); + } + } + + public sealed class GenerateAsyncMethod : BaseGeneratorTests.BaseGenerateAsyncMethod + { + public GenerateAsyncMethod(ITestOutputHelper output) : base(output) + { + } + + protected override Func GetFactory() + { + return data => new TestReactiveMetroWindowClassGenerator(); + } + } + } +} diff --git a/src/Dhgms.Nucleotide.UnitTests/Generators/Features/ReactiveUI/WPF/ReactiveSimpleChildWindowClassGeneratorTests.cs b/src/Dhgms.Nucleotide.UnitTests/Generators/Features/ReactiveUI/WPF/ReactiveSimpleChildWindowClassGeneratorTests.cs new file mode 100644 index 00000000..b4355202 --- /dev/null +++ b/src/Dhgms.Nucleotide.UnitTests/Generators/Features/ReactiveUI/WPF/ReactiveSimpleChildWindowClassGeneratorTests.cs @@ -0,0 +1,37 @@ +using System; +using System.Diagnostics.CodeAnalysis; +using Dhgms.Nucleotide.Generators.Features.ReactiveUI.Wpf; +using Dhgms.Nucleotide.SampleGenerator; +using Microsoft.CodeAnalysis; +using Xunit.Abstractions; + +namespace Dhgms.Nucleotide.UnitTests.Generators.Features.ReactiveUI.WPF +{ + [ExcludeFromCodeCoverage] + public static class ReactiveSimpleChildWindowClassGeneratorTests + { + public sealed class ConstructorMethod : BaseGeneratorTests.BaseConstructorMethod + { + public ConstructorMethod(ITestOutputHelper output) : base(output) + { + } + + protected override Func GetFactory() + { + return data => new TestReactiveSimpleChildWindowClassGenerator(); + } + } + + public sealed class GenerateAsyncMethod : BaseGeneratorTests.BaseGenerateAsyncMethod + { + public GenerateAsyncMethod(ITestOutputHelper output) : base(output) + { + } + + protected override Func GetFactory() + { + return data => new TestReactiveSimpleChildWindowClassGenerator(); + } + } + } +} diff --git a/src/Dhgms.Nucleotide.UnitTests/Generators/KeyedModelClassGeneratorTests.cs b/src/Dhgms.Nucleotide.UnitTests/Generators/KeyedModelClassGeneratorTests.cs index 3fa9062e..e4fc259c 100644 --- a/src/Dhgms.Nucleotide.UnitTests/Generators/KeyedModelClassGeneratorTests.cs +++ b/src/Dhgms.Nucleotide.UnitTests/Generators/KeyedModelClassGeneratorTests.cs @@ -1,14 +1,13 @@ -using System; -using System.Collections.Generic; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using System.Diagnostics.CodeAnalysis; -using System.Text; -using Dhgms.Nucleotide.Generators; using Dhgms.Nucleotide.Generators.Features.Model; using Dhgms.Nucleotide.Generators.Models; using Dhgms.Nucleotide.ModelTests; using Microsoft.CodeAnalysis; -using Moq; -using Xunit; using Xunit.Abstractions; namespace Dhgms.Nucleotide.UnitTests.Generators diff --git a/src/Dhgms.Nucleotide.UnitTests/Generators/KeyedModelInterfaceGeneratorTests.cs b/src/Dhgms.Nucleotide.UnitTests/Generators/KeyedModelInterfaceGeneratorTests.cs index e544b8cf..51429fd3 100644 --- a/src/Dhgms.Nucleotide.UnitTests/Generators/KeyedModelInterfaceGeneratorTests.cs +++ b/src/Dhgms.Nucleotide.UnitTests/Generators/KeyedModelInterfaceGeneratorTests.cs @@ -1,14 +1,13 @@ -using System; -using System.Collections.Generic; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using System.Diagnostics.CodeAnalysis; -using System.Text; -using Dhgms.Nucleotide.Generators; using Dhgms.Nucleotide.Generators.Features.Model; using Dhgms.Nucleotide.Generators.Models; using Dhgms.Nucleotide.ModelTests; using Microsoft.CodeAnalysis; -using Moq; -using Xunit; using Xunit.Abstractions; namespace Dhgms.Nucleotide.UnitTests.Generators diff --git a/src/Dhgms.Nucleotide.UnitTests/Generators/Mvc/MvcControllerGeneratorTests.cs b/src/Dhgms.Nucleotide.UnitTests/Generators/Mvc/MvcControllerGeneratorTests.cs index e11588fd..9b3b314f 100644 --- a/src/Dhgms.Nucleotide.UnitTests/Generators/Mvc/MvcControllerGeneratorTests.cs +++ b/src/Dhgms.Nucleotide.UnitTests/Generators/Mvc/MvcControllerGeneratorTests.cs @@ -1,11 +1,10 @@ -using System; -using System.Collections.Generic; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using System.Diagnostics.CodeAnalysis; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using Dhgms.Nucleotide.Generators.Features.Mvc; -using Dhgms.Nucleotide.Generators.Features.WebApi; using Dhgms.Nucleotide.Generators.Models; using Dhgms.Nucleotide.ModelTests; using Microsoft.CodeAnalysis; diff --git a/src/Dhgms.Nucleotide.UnitTests/Generators/RequestDtoClassGeneratorTests.cs b/src/Dhgms.Nucleotide.UnitTests/Generators/RequestDtoClassGeneratorTests.cs index 32932f87..a4a68c96 100644 --- a/src/Dhgms.Nucleotide.UnitTests/Generators/RequestDtoClassGeneratorTests.cs +++ b/src/Dhgms.Nucleotide.UnitTests/Generators/RequestDtoClassGeneratorTests.cs @@ -1,14 +1,13 @@ -using System; -using System.Collections.Generic; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using System.Diagnostics.CodeAnalysis; -using System.Text; -using Dhgms.Nucleotide.Generators; using Dhgms.Nucleotide.Generators.Features.Dto; using Dhgms.Nucleotide.Generators.Models; using Dhgms.Nucleotide.ModelTests; using Microsoft.CodeAnalysis; -using Moq; -using Xunit; using Xunit.Abstractions; namespace Dhgms.Nucleotide.UnitTests.Generators diff --git a/src/Dhgms.Nucleotide.UnitTests/Generators/ResponseDtoClassGeneratorTests.cs b/src/Dhgms.Nucleotide.UnitTests/Generators/ResponseDtoClassGeneratorTests.cs index 80e4d5f5..e1a857f8 100644 --- a/src/Dhgms.Nucleotide.UnitTests/Generators/ResponseDtoClassGeneratorTests.cs +++ b/src/Dhgms.Nucleotide.UnitTests/Generators/ResponseDtoClassGeneratorTests.cs @@ -1,14 +1,13 @@ -using System; -using System.Collections.Generic; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using System.Diagnostics.CodeAnalysis; -using System.Text; -using Dhgms.Nucleotide.Generators; using Dhgms.Nucleotide.Generators.Features.Dto; using Dhgms.Nucleotide.Generators.Models; using Dhgms.Nucleotide.ModelTests; using Microsoft.CodeAnalysis; -using Moq; -using Xunit; using Xunit.Abstractions; namespace Dhgms.Nucleotide.UnitTests.Generators diff --git a/src/Dhgms.Nucleotide.UnitTests/Generators/ServiceInterfaceGeneratorTests.cs b/src/Dhgms.Nucleotide.UnitTests/Generators/ServiceInterfaceGeneratorTests.cs index d3bfed52..fdb69172 100644 --- a/src/Dhgms.Nucleotide.UnitTests/Generators/ServiceInterfaceGeneratorTests.cs +++ b/src/Dhgms.Nucleotide.UnitTests/Generators/ServiceInterfaceGeneratorTests.cs @@ -1,15 +1,14 @@ -using System; -using System.Collections.Generic; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using System.Diagnostics.CodeAnalysis; -using System.Text; -using Dhgms.Nucleotide.Generators; using Dhgms.Nucleotide.Generators.GeneratorProcessors; using Dhgms.Nucleotide.Generators.Generators; using Dhgms.Nucleotide.Generators.Models; using Dhgms.Nucleotide.ModelTests; using Microsoft.CodeAnalysis; -using Moq; -using Xunit; using Xunit.Abstractions; namespace Dhgms.Nucleotide.UnitTests.Generators diff --git a/src/Dhgms.Nucleotide.UnitTests/Generators/UnkeyedModelClassGeneratorTests.cs b/src/Dhgms.Nucleotide.UnitTests/Generators/UnkeyedModelClassGeneratorTests.cs index 266e9dc1..89a943dd 100644 --- a/src/Dhgms.Nucleotide.UnitTests/Generators/UnkeyedModelClassGeneratorTests.cs +++ b/src/Dhgms.Nucleotide.UnitTests/Generators/UnkeyedModelClassGeneratorTests.cs @@ -1,14 +1,13 @@ -using System; -using System.Collections.Generic; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using System.Diagnostics.CodeAnalysis; -using System.Text; -using Dhgms.Nucleotide.Generators; using Dhgms.Nucleotide.Generators.Features.Model; using Dhgms.Nucleotide.Generators.Models; using Dhgms.Nucleotide.ModelTests; using Microsoft.CodeAnalysis; -using Moq; -using Xunit; using Xunit.Abstractions; namespace Dhgms.Nucleotide.UnitTests.Generators diff --git a/src/Dhgms.Nucleotide.UnitTests/Generators/UnkeyedModelInterfaceGeneratorTests.cs b/src/Dhgms.Nucleotide.UnitTests/Generators/UnkeyedModelInterfaceGeneratorTests.cs index 1418c5a7..dcbfda4f 100644 --- a/src/Dhgms.Nucleotide.UnitTests/Generators/UnkeyedModelInterfaceGeneratorTests.cs +++ b/src/Dhgms.Nucleotide.UnitTests/Generators/UnkeyedModelInterfaceGeneratorTests.cs @@ -1,13 +1,13 @@ -using System; -using System.Collections.Generic; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using System.Diagnostics.CodeAnalysis; -using Dhgms.Nucleotide.Generators; using Dhgms.Nucleotide.Generators.Features.Model; using Dhgms.Nucleotide.Generators.Models; using Dhgms.Nucleotide.ModelTests; using Microsoft.CodeAnalysis; -using Moq; -using Xunit; using Xunit.Abstractions; namespace Dhgms.Nucleotide.UnitTests.Generators diff --git a/src/Dhgms.Nucleotide.UnitTests/Generators/WebApiClientGeneratorTests.cs b/src/Dhgms.Nucleotide.UnitTests/Generators/WebApiClientGeneratorTests.cs index 42bbb5c8..fa1fbcbc 100644 --- a/src/Dhgms.Nucleotide.UnitTests/Generators/WebApiClientGeneratorTests.cs +++ b/src/Dhgms.Nucleotide.UnitTests/Generators/WebApiClientGeneratorTests.cs @@ -1,14 +1,13 @@ -using System; -using System.Collections.Generic; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using System.Diagnostics.CodeAnalysis; -using System.Text; -using Dhgms.Nucleotide.Generators; using Dhgms.Nucleotide.Generators.Features.WebApi; using Dhgms.Nucleotide.Generators.Models; using Dhgms.Nucleotide.ModelTests; using Microsoft.CodeAnalysis; -using Moq; -using Xunit; using Xunit.Abstractions; namespace Dhgms.Nucleotide.UnitTests.Generators diff --git a/src/Dhgms.Nucleotide.UnitTests/Generators/WebApiServiceGeneratorTests.cs b/src/Dhgms.Nucleotide.UnitTests/Generators/WebApiServiceGeneratorTests.cs index 2093acb2..8ad12e36 100644 --- a/src/Dhgms.Nucleotide.UnitTests/Generators/WebApiServiceGeneratorTests.cs +++ b/src/Dhgms.Nucleotide.UnitTests/Generators/WebApiServiceGeneratorTests.cs @@ -1,14 +1,13 @@ -using System; -using System.Collections.Generic; +// Copyright (c) 2020 DHGMS Solutions and Contributors. All rights reserved. +// DHGMS Solutions and Contributors licenses this file to you under the MIT license. +// See the LICENSE file in the project root for full license information. + +using System; using System.Diagnostics.CodeAnalysis; -using System.Text; -using Dhgms.Nucleotide.Generators; using Dhgms.Nucleotide.Generators.Features.WebApi; using Dhgms.Nucleotide.Generators.Models; using Dhgms.Nucleotide.ModelTests; using Microsoft.CodeAnalysis; -using Moq; -using Xunit; using Xunit.Abstractions; namespace Dhgms.Nucleotide.UnitTests.Generators diff --git a/src/stylecop.json b/src/stylecop.json index e2c3b2a8..998d0f78 100644 --- a/src/stylecop.json +++ b/src/stylecop.json @@ -13,7 +13,7 @@ "documentPrivateFields": false, "documentationCulture": "en-US", "companyName": "DHGMS Solutions and Contributors", - "copyrightText": "Copyright (c) 2021 {companyName}. All rights reserved.\n{companyName} licenses this file to you under the {licenseName} license.\nSee the {licenseFile} file in the project root for full license information.", + "copyrightText": "Copyright (c) 2022 {companyName}. All rights reserved.\n{companyName} licenses this file to you under the {licenseName} license.\nSee the {licenseFile} file in the project root for full license information.", "variables": { "licenseName": "MIT", "licenseFile": "LICENSE"