-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #158 from AntonioFalcao/release
Updating
- Loading branch information
Showing
26 changed files
with
1,934 additions
and
1,937 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Reflection; | ||
using Microsoft.Extensions.DependencyModel; | ||
|
||
namespace Dotnet5.GraphQL3.CrossCutting | ||
{ | ||
public static class Application | ||
{ | ||
public static string Prefix { get; } = Assembly.GetEntryAssembly()?.FullName?.Substring(0, 16); | ||
public static IEnumerable<Assembly> Assemblies { get; } = | ||
AppDomain.CurrentDomain.GetAssemblies().Where(assembly => assembly.FullName?.StartsWith(Prefix) ?? false); | ||
|
||
public static IEnumerable<Assembly> Assemblies { get; } = | ||
DependencyContext.Default.RuntimeLibraries | ||
.Where(library => library.Name.Contains(Prefix)) | ||
.SelectMany(library => library.GetDefaultAssemblyNames(DependencyContext.Default)) | ||
.Select(Assembly.Load); | ||
} | ||
} |
9 changes: 4 additions & 5 deletions
9
src/Dotnet5.GraphQL3.CrossCutting/Dotnet5.GraphQL3.CrossCutting.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="FluentValidation" Version="$(FluentValidation_Version)" /> | ||
<PackageReference Include="GraphQL" Version="$(GraphQL_Version)" /> | ||
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="$(Microsoft_DependencyInjection_Version)" /> | ||
<PackageReference Include="FluentValidation" Version="$(FluentValidation_Version)"/> | ||
<PackageReference Include="GraphQL" Version="$(GraphQL_Version)"/> | ||
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="$(Microsoft_DependencyInjection_Version)"/> | ||
<PackageReference Include="Microsoft.Extensions.DependencyModel" Version="3.1.6"/> | ||
</ItemGroup> | ||
|
||
</Project> |
11 changes: 4 additions & 7 deletions
11
src/Dotnet5.GraphQL3.Domain.Abstractions/Dotnet5.GraphQL3.Domain.Abstractions.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="FluentValidation" Version="$(FluentValidation_Version)" /> | ||
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="$(Microsoft_DependencyInjection_Version)" /> | ||
<PackageReference Include="Scrutor" Version="$(Scrutor_Version)" /> | ||
<PackageReference Include="FluentValidation" Version="$(FluentValidation_Version)"/> | ||
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="$(Microsoft_DependencyInjection_Version)"/> | ||
<PackageReference Include="Scrutor" Version="$(Scrutor_Version)"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Dotnet5.GraphQL3.CrossCutting\Dotnet5.GraphQL3.CrossCutting.csproj" /> | ||
<ProjectReference Include="..\Dotnet5.GraphQL3.CrossCutting\Dotnet5.GraphQL3.CrossCutting.csproj"/> | ||
</ItemGroup> | ||
|
||
</Project> |
11 changes: 4 additions & 7 deletions
11
...net5.GraphQL3.Repositories.Abstractions/Dotnet5.GraphQL3.Repositories.Abstractions.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="AutoMapper" Version="$(AutoMapper_Version)" /> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="$(Microsoft_EntityFrameworkCore_Version)" /> | ||
<PackageReference Include="Scrutor" Version="$(Scrutor_Version)" /> | ||
<PackageReference Include="AutoMapper" Version="$(AutoMapper_Version)"/> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="$(Microsoft_EntityFrameworkCore_Version)"/> | ||
<PackageReference Include="Scrutor" Version="$(Scrutor_Version)"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Dotnet5.GraphQL3.Store.Domain\Dotnet5.GraphQL3.Store.Domain.csproj" /> | ||
<ProjectReference Include="..\Dotnet5.GraphQL3.Store.Domain\Dotnet5.GraphQL3.Store.Domain.csproj"/> | ||
</ItemGroup> | ||
|
||
</Project> |
16 changes: 7 additions & 9 deletions
16
src/Dotnet5.GraphQL3.Services.Abstractions/Dotnet5.GraphQL3.Services.Abstractions.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 4 additions & 9 deletions
13
src/Dotnet5.GraphQL3.Store.Domain/Dotnet5.GraphQL3.Store.Domain.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,21 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="FluentValidation" Version="$(FluentValidation_Version)" /> | ||
<PackageReference Include="FluentValidation" Version="$(FluentValidation_Version)"/> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\Dotnet5.GraphQL3.Domain.Abstractions\Dotnet5.GraphQL3.Domain.Abstractions.csproj"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<EmbeddedResource Update="Resource.resx"> | ||
<Generator>ResXFileCodeGenerator</Generator> | ||
<LastGenOutput>Resource.Designer.cs</LastGenOutput> | ||
</EmbeddedResource> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Compile Update="Resource.Designer.cs"> | ||
<DesignTime>True</DesignTime> | ||
<AutoGen>True</AutoGen> | ||
<DependentUpon>DomainResource.resx</DependentUpon> | ||
</Compile> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Dotnet5.GraphQL3.Domain.Abstractions\Dotnet5.GraphQL3.Domain.Abstractions.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 21 additions & 21 deletions
42
...tories/Configs/Products/BackpackConfig.cs → ...rations/Products/BackpackConfiguration.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
using Dotnet5.GraphQL3.Store.Domain.Entities.Products; | ||
using Dotnet5.GraphQL3.Store.Domain.Entities.Products.Backpacks; | ||
using Dotnet5.GraphQL3.Store.Domain.Enumerations; | ||
using Microsoft.EntityFrameworkCore; | ||
using Microsoft.EntityFrameworkCore.Metadata.Builders; | ||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; | ||
|
||
namespace Dotnet5.GraphQL3.Store.Repositories.Configs.Products | ||
{ | ||
public class BackpackConfig : IEntityTypeConfiguration<Backpack> | ||
{ | ||
public void Configure(EntityTypeBuilder<Backpack> builder) | ||
{ | ||
builder | ||
.HasBaseType<Product>(); | ||
|
||
builder | ||
.Property(x => x.BackpackType) | ||
.HasConversion(new EnumToStringConverter<BackpackType>()); | ||
} | ||
} | ||
using Dotnet5.GraphQL3.Store.Domain.Entities.Products; | ||
using Dotnet5.GraphQL3.Store.Domain.Entities.Products.Backpacks; | ||
using Dotnet5.GraphQL3.Store.Domain.Enumerations; | ||
using Microsoft.EntityFrameworkCore; | ||
using Microsoft.EntityFrameworkCore.Metadata.Builders; | ||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; | ||
|
||
namespace Dotnet5.GraphQL3.Store.Repositories.Configurations.Products | ||
{ | ||
public class BackpackConfiguration : IEntityTypeConfiguration<Backpack> | ||
{ | ||
public void Configure(EntityTypeBuilder<Backpack> builder) | ||
{ | ||
builder | ||
.HasBaseType<Product>(); | ||
|
||
builder | ||
.Property(x => x.BackpackType) | ||
.HasConversion(new EnumToStringConverter<BackpackType>()); | ||
} | ||
} | ||
} |
48 changes: 24 additions & 24 deletions
48
...positories/Configs/Products/BootConfig.cs → ...figurations/Products/BootConfiguration.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
using Dotnet5.GraphQL3.Store.Domain.Entities.Products; | ||
using Dotnet5.GraphQL3.Store.Domain.Entities.Products.Boots; | ||
using Dotnet5.GraphQL3.Store.Domain.Enumerations; | ||
using Microsoft.EntityFrameworkCore; | ||
using Microsoft.EntityFrameworkCore.Metadata.Builders; | ||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; | ||
|
||
namespace Dotnet5.GraphQL3.Store.Repositories.Configs.Products | ||
{ | ||
public class BootConfig : IEntityTypeConfiguration<Boot> | ||
{ | ||
public void Configure(EntityTypeBuilder<Boot> builder) | ||
{ | ||
builder | ||
.HasBaseType<Product>(); | ||
|
||
builder | ||
.Property(x => x.Size); | ||
|
||
builder | ||
.Property(x => x.BootType) | ||
.HasConversion(new EnumToStringConverter<BootType>()); | ||
} | ||
} | ||
using Dotnet5.GraphQL3.Store.Domain.Entities.Products; | ||
using Dotnet5.GraphQL3.Store.Domain.Entities.Products.Boots; | ||
using Dotnet5.GraphQL3.Store.Domain.Enumerations; | ||
using Microsoft.EntityFrameworkCore; | ||
using Microsoft.EntityFrameworkCore.Metadata.Builders; | ||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; | ||
|
||
namespace Dotnet5.GraphQL3.Store.Repositories.Configurations.Products | ||
{ | ||
public class BootConfiguration : IEntityTypeConfiguration<Boot> | ||
{ | ||
public void Configure(EntityTypeBuilder<Boot> builder) | ||
{ | ||
builder | ||
.HasBaseType<Product>(); | ||
|
||
builder | ||
.Property(x => x.Size); | ||
|
||
builder | ||
.Property(x => x.BootType) | ||
.HasConversion(new EnumToStringConverter<BootType>()); | ||
} | ||
} | ||
} |
48 changes: 24 additions & 24 deletions
48
...ositories/Configs/Products/KayakConfig.cs → ...igurations/Products/KayakConfiguration.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
using Dotnet5.GraphQL3.Store.Domain.Entities.Products; | ||
using Dotnet5.GraphQL3.Store.Domain.Entities.Products.Kayaks; | ||
using Dotnet5.GraphQL3.Store.Domain.Enumerations; | ||
using Microsoft.EntityFrameworkCore; | ||
using Microsoft.EntityFrameworkCore.Metadata.Builders; | ||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; | ||
|
||
namespace Dotnet5.GraphQL3.Store.Repositories.Configs.Products | ||
{ | ||
public class KayakConfig : IEntityTypeConfiguration<Kayak> | ||
{ | ||
public void Configure(EntityTypeBuilder<Kayak> builder) | ||
{ | ||
builder | ||
.HasBaseType<Product>(); | ||
|
||
builder | ||
.Property(x => x.KayakType) | ||
.HasConversion(new EnumToStringConverter<KayakType>()); | ||
|
||
builder | ||
.Property(x => x.AmountOfPerson); | ||
} | ||
} | ||
using Dotnet5.GraphQL3.Store.Domain.Entities.Products; | ||
using Dotnet5.GraphQL3.Store.Domain.Entities.Products.Kayaks; | ||
using Dotnet5.GraphQL3.Store.Domain.Enumerations; | ||
using Microsoft.EntityFrameworkCore; | ||
using Microsoft.EntityFrameworkCore.Metadata.Builders; | ||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; | ||
|
||
namespace Dotnet5.GraphQL3.Store.Repositories.Configurations.Products | ||
{ | ||
public class KayakConfiguration : IEntityTypeConfiguration<Kayak> | ||
{ | ||
public void Configure(EntityTypeBuilder<Kayak> builder) | ||
{ | ||
builder | ||
.HasBaseType<Product>(); | ||
|
||
builder | ||
.Property(x => x.KayakType) | ||
.HasConversion(new EnumToStringConverter<KayakType>()); | ||
|
||
builder | ||
.Property(x => x.AmountOfPerson); | ||
} | ||
} | ||
} |
Oops, something went wrong.