diff --git a/GenericRepository.Tests/MoqData/SampleModel.cs b/GenericRepository.Tests/MoqData/SampleModel.cs index 0f2c88d..3735d0b 100644 --- a/GenericRepository.Tests/MoqData/SampleModel.cs +++ b/GenericRepository.Tests/MoqData/SampleModel.cs @@ -1,4 +1,4 @@ -using GenericRepository.Entities; +using GenericRepository.Domain; namespace GenericRepository.Tests.MoqData; diff --git a/GenericRepository.Tests/Repository/GenericRepository/Query/QueryGenericRepositoryTests.GetSingleAsync.cs b/GenericRepository.Tests/Repository/GenericRepository/Query/QueryGenericRepositoryTests.GetSingleAsync.cs index 99382bb..5af4afa 100644 --- a/GenericRepository.Tests/Repository/GenericRepository/Query/QueryGenericRepositoryTests.GetSingleAsync.cs +++ b/GenericRepository.Tests/Repository/GenericRepository/Query/QueryGenericRepositoryTests.GetSingleAsync.cs @@ -1,5 +1,3 @@ -using GenericRepository.Data; -using GenericRepository.Repository; using GenericRepository.Tests.MoqData; using Moq; diff --git a/GenericRepository.Tests/bin/Debug/net7.0/GenericRepository.Tests.deps.json b/GenericRepository.Tests/bin/Debug/net7.0/GenericRepository.Tests.deps.json index 8ef13ad..daab9f4 100644 --- a/GenericRepository.Tests/bin/Debug/net7.0/GenericRepository.Tests.deps.json +++ b/GenericRepository.Tests/bin/Debug/net7.0/GenericRepository.Tests.deps.json @@ -32,6 +32,26 @@ } }, "coverlet.collector/3.1.2": {}, + "MediatR/12.2.0": { + "dependencies": { + "MediatR.Contracts": "2.0.1", + "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0" + }, + "runtime": { + "lib/net6.0/MediatR.dll": { + "assemblyVersion": "12.0.0.0", + "fileVersion": "12.2.0.0" + } + } + }, + "MediatR.Contracts/2.0.1": { + "runtime": { + "lib/netstandard2.0/MediatR.Contracts.dll": { + "assemblyVersion": "2.0.1.0", + "fileVersion": "2.0.1.0" + } + } + }, "Microsoft.CodeCoverage/17.3.2": { "runtime": { "lib/netcoreapp1.0/Microsoft.VisualStudio.CodeCoverage.Shim.dll": { @@ -98,7 +118,7 @@ "Microsoft.Extensions.Caching.Memory/7.0.0": { "dependencies": { "Microsoft.Extensions.Caching.Abstractions": "7.0.0", - "Microsoft.Extensions.DependencyInjection.Abstractions": "7.0.0", + "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "7.0.0", "Microsoft.Extensions.Options": "7.0.0", "Microsoft.Extensions.Primitives": "7.0.0" @@ -112,7 +132,7 @@ }, "Microsoft.Extensions.DependencyInjection/7.0.0": { "dependencies": { - "Microsoft.Extensions.DependencyInjection.Abstractions": "7.0.0" + "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0" }, "runtime": { "lib/net7.0/Microsoft.Extensions.DependencyInjection.dll": { @@ -121,11 +141,11 @@ } } }, - "Microsoft.Extensions.DependencyInjection.Abstractions/7.0.0": { + "Microsoft.Extensions.DependencyInjection.Abstractions/8.0.0": { "runtime": { "lib/net7.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": { - "assemblyVersion": "7.0.0.0", - "fileVersion": "7.0.22.51805" + "assemblyVersion": "8.0.0.0", + "fileVersion": "8.0.23.53103" } } }, @@ -147,7 +167,7 @@ "Microsoft.Extensions.Logging/7.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection": "7.0.0", - "Microsoft.Extensions.DependencyInjection.Abstractions": "7.0.0", + "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "7.0.0", "Microsoft.Extensions.Options": "7.0.0" }, @@ -168,7 +188,7 @@ }, "Microsoft.Extensions.Options/7.0.0": { "dependencies": { - "Microsoft.Extensions.DependencyInjection.Abstractions": "7.0.0", + "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Primitives": "7.0.0" }, "runtime": { @@ -609,7 +629,7 @@ "runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl/4.3.0": {}, "Scrutor/4.2.0": { "dependencies": { - "Microsoft.Extensions.DependencyInjection.Abstractions": "7.0.0", + "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.DependencyModel": "6.0.0" }, "runtime": { @@ -1293,6 +1313,7 @@ "xunit.runner.visualstudio/2.4.5": {}, "GenericRepository/1.0.0": { "dependencies": { + "MediatR": "12.2.0", "Microsoft.EntityFrameworkCore": "7.0.10", "Microsoft.EntityFrameworkCore.Abstractions": "7.0.10", "Scrutor": "4.2.0" @@ -1323,6 +1344,20 @@ "path": "coverlet.collector/3.1.2", "hashPath": "coverlet.collector.3.1.2.nupkg.sha512" }, + "MediatR/12.2.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-8TUFrHapKi6D74PhnSNEguRsH91HNGyP3R4ZQdgDorJgl9Wac5Prh0vA33QfrniAaS6L2xNNhc6vxzg+5AIbwA==", + "path": "mediatr/12.2.0", + "hashPath": "mediatr.12.2.0.nupkg.sha512" + }, + "MediatR.Contracts/2.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-FYv95bNT4UwcNA+G/J1oX5OpRiSUxteXaUt2BJbRSdRNiIUNbggJF69wy6mnk2wYToaanpdXZdCwVylt96MpwQ==", + "path": "mediatr.contracts/2.0.1", + "hashPath": "mediatr.contracts.2.0.1.nupkg.sha512" + }, "Microsoft.CodeCoverage/17.3.2": { "type": "package", "serviceable": true, @@ -1379,12 +1414,12 @@ "path": "microsoft.extensions.dependencyinjection/7.0.0", "hashPath": "microsoft.extensions.dependencyinjection.7.0.0.nupkg.sha512" }, - "Microsoft.Extensions.DependencyInjection.Abstractions/7.0.0": { + "Microsoft.Extensions.DependencyInjection.Abstractions/8.0.0": { "type": "package", "serviceable": true, - "sha512": "sha512-h3j/QfmFN4S0w4C2A6X7arXij/M/OVw3uQHSOFxnND4DyAzO1F9eMX7Eti7lU/OkSthEE0WzRsfT/Dmx86jzCw==", - "path": "microsoft.extensions.dependencyinjection.abstractions/7.0.0", - "hashPath": "microsoft.extensions.dependencyinjection.abstractions.7.0.0.nupkg.sha512" + "sha512": "sha512-cjWrLkJXK0rs4zofsK4bSdg+jhDLTaxrkXu4gS6Y7MAlCvRyNNgwY/lJi5RDlQOnSZweHqoyvgvbdvQsRIW+hg==", + "path": "microsoft.extensions.dependencyinjection.abstractions/8.0.0", + "hashPath": "microsoft.extensions.dependencyinjection.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyModel/6.0.0": { "type": "package", diff --git a/GenericRepository.Tests/bin/Debug/net7.0/GenericRepository.Tests.dll b/GenericRepository.Tests/bin/Debug/net7.0/GenericRepository.Tests.dll index 13558f0..286ee47 100644 Binary files a/GenericRepository.Tests/bin/Debug/net7.0/GenericRepository.Tests.dll and b/GenericRepository.Tests/bin/Debug/net7.0/GenericRepository.Tests.dll differ diff --git a/GenericRepository.Tests/bin/Debug/net7.0/GenericRepository.Tests.pdb b/GenericRepository.Tests/bin/Debug/net7.0/GenericRepository.Tests.pdb index 95b5d56..ac650c6 100644 Binary files a/GenericRepository.Tests/bin/Debug/net7.0/GenericRepository.Tests.pdb and b/GenericRepository.Tests/bin/Debug/net7.0/GenericRepository.Tests.pdb differ diff --git a/GenericRepository.Tests/bin/Debug/net7.0/GenericRepository.dll b/GenericRepository.Tests/bin/Debug/net7.0/GenericRepository.dll index 1d1e42b..b4f54dc 100644 Binary files a/GenericRepository.Tests/bin/Debug/net7.0/GenericRepository.dll and b/GenericRepository.Tests/bin/Debug/net7.0/GenericRepository.dll differ diff --git a/GenericRepository.Tests/bin/Debug/net7.0/GenericRepository.pdb b/GenericRepository.Tests/bin/Debug/net7.0/GenericRepository.pdb index d966c7a..b0b6b59 100644 Binary files a/GenericRepository.Tests/bin/Debug/net7.0/GenericRepository.pdb and b/GenericRepository.Tests/bin/Debug/net7.0/GenericRepository.pdb differ diff --git a/GenericRepository.Tests/bin/Debug/net7.0/MediatR.Contracts.dll b/GenericRepository.Tests/bin/Debug/net7.0/MediatR.Contracts.dll new file mode 100755 index 0000000..32bc7c1 Binary files /dev/null and b/GenericRepository.Tests/bin/Debug/net7.0/MediatR.Contracts.dll differ diff --git a/GenericRepository.Tests/bin/Debug/net7.0/MediatR.dll b/GenericRepository.Tests/bin/Debug/net7.0/MediatR.dll new file mode 100755 index 0000000..ef55866 Binary files /dev/null and b/GenericRepository.Tests/bin/Debug/net7.0/MediatR.dll differ diff --git a/GenericRepository.Tests/bin/Debug/net7.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll b/GenericRepository.Tests/bin/Debug/net7.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll index 048ba41..0a8c0f5 100755 Binary files a/GenericRepository.Tests/bin/Debug/net7.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll and b/GenericRepository.Tests/bin/Debug/net7.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll differ diff --git a/GenericRepository.Tests/obj/Debug/net7.0/GenericRepository.Tests.assets.cache b/GenericRepository.Tests/obj/Debug/net7.0/GenericRepository.Tests.assets.cache index dcf8bb8..cb18a16 100644 Binary files a/GenericRepository.Tests/obj/Debug/net7.0/GenericRepository.Tests.assets.cache and b/GenericRepository.Tests/obj/Debug/net7.0/GenericRepository.Tests.assets.cache differ diff --git a/GenericRepository.Tests/obj/Debug/net7.0/GenericRepository.Tests.csproj.AssemblyReference.cache b/GenericRepository.Tests/obj/Debug/net7.0/GenericRepository.Tests.csproj.AssemblyReference.cache index 601418b..47481e0 100644 Binary files a/GenericRepository.Tests/obj/Debug/net7.0/GenericRepository.Tests.csproj.AssemblyReference.cache and b/GenericRepository.Tests/obj/Debug/net7.0/GenericRepository.Tests.csproj.AssemblyReference.cache differ diff --git a/GenericRepository.Tests/obj/Debug/net7.0/GenericRepository.Tests.csproj.CoreCompileInputs.cache b/GenericRepository.Tests/obj/Debug/net7.0/GenericRepository.Tests.csproj.CoreCompileInputs.cache index e1cd0c1..78f0198 100644 --- a/GenericRepository.Tests/obj/Debug/net7.0/GenericRepository.Tests.csproj.CoreCompileInputs.cache +++ b/GenericRepository.Tests/obj/Debug/net7.0/GenericRepository.Tests.csproj.CoreCompileInputs.cache @@ -1 +1 @@ -3dbd4bf0230f3a5df2440d4cbe8dfda86a0b65b5 +9080cff8d28611616558fe7173d416495dda4df9 diff --git a/GenericRepository.Tests/obj/Debug/net7.0/GenericRepository.Tests.csproj.FileListAbsolute.txt b/GenericRepository.Tests/obj/Debug/net7.0/GenericRepository.Tests.csproj.FileListAbsolute.txt index 9b97665..729b74f 100644 --- a/GenericRepository.Tests/obj/Debug/net7.0/GenericRepository.Tests.csproj.FileListAbsolute.txt +++ b/GenericRepository.Tests/obj/Debug/net7.0/GenericRepository.Tests.csproj.FileListAbsolute.txt @@ -117,3 +117,5 @@ /Users/macbook/Projects/Generic Repository/GenericRepository.Tests/obj/Debug/net7.0/GenericRepository.Tests.pdb /Users/macbook/Projects/Generic Repository/GenericRepository.Tests/obj/Debug/net7.0/GenericRepository.Tests.genruntimeconfig.cache /Users/macbook/Projects/Generic Repository/GenericRepository.Tests/obj/Debug/net7.0/ref/GenericRepository.Tests.dll +/Users/macbook/Projects/Generic Repository/GenericRepository.Tests/bin/Debug/net7.0/MediatR.dll +/Users/macbook/Projects/Generic Repository/GenericRepository.Tests/bin/Debug/net7.0/MediatR.Contracts.dll diff --git a/GenericRepository.Tests/obj/Debug/net7.0/GenericRepository.Tests.dll b/GenericRepository.Tests/obj/Debug/net7.0/GenericRepository.Tests.dll index 13558f0..286ee47 100644 Binary files a/GenericRepository.Tests/obj/Debug/net7.0/GenericRepository.Tests.dll and b/GenericRepository.Tests/obj/Debug/net7.0/GenericRepository.Tests.dll differ diff --git a/GenericRepository.Tests/obj/Debug/net7.0/GenericRepository.Tests.pdb b/GenericRepository.Tests/obj/Debug/net7.0/GenericRepository.Tests.pdb index 95b5d56..ac650c6 100644 Binary files a/GenericRepository.Tests/obj/Debug/net7.0/GenericRepository.Tests.pdb and b/GenericRepository.Tests/obj/Debug/net7.0/GenericRepository.Tests.pdb differ diff --git a/GenericRepository.Tests/obj/Debug/net7.0/ref/GenericRepository.Tests.dll b/GenericRepository.Tests/obj/Debug/net7.0/ref/GenericRepository.Tests.dll index d10eb7e..dabf5f9 100644 Binary files a/GenericRepository.Tests/obj/Debug/net7.0/ref/GenericRepository.Tests.dll and b/GenericRepository.Tests/obj/Debug/net7.0/ref/GenericRepository.Tests.dll differ diff --git a/GenericRepository.Tests/obj/Debug/net7.0/refint/GenericRepository.Tests.dll b/GenericRepository.Tests/obj/Debug/net7.0/refint/GenericRepository.Tests.dll index d10eb7e..dabf5f9 100644 Binary files a/GenericRepository.Tests/obj/Debug/net7.0/refint/GenericRepository.Tests.dll and b/GenericRepository.Tests/obj/Debug/net7.0/refint/GenericRepository.Tests.dll differ diff --git a/GenericRepository.Tests/obj/GenericRepository.Tests.csproj.nuget.dgspec.json b/GenericRepository.Tests/obj/GenericRepository.Tests.csproj.nuget.dgspec.json index 7e29fd3..653f98f 100644 --- a/GenericRepository.Tests/obj/GenericRepository.Tests.csproj.nuget.dgspec.json +++ b/GenericRepository.Tests/obj/GenericRepository.Tests.csproj.nuget.dgspec.json @@ -125,6 +125,10 @@ "net7.0": { "targetAlias": "net7.0", "dependencies": { + "MediatR": { + "target": "Package", + "version": "[12.2.0, )" + }, "Microsoft.EntityFrameworkCore": { "target": "Package", "version": "[7.0.10, )" diff --git a/GenericRepository.Tests/obj/project.assets.json b/GenericRepository.Tests/obj/project.assets.json index a8329d0..acb5b43 100644 --- a/GenericRepository.Tests/obj/project.assets.json +++ b/GenericRepository.Tests/obj/project.assets.json @@ -24,6 +24,36 @@ "build/netstandard1.0/coverlet.collector.targets": {} } }, + "MediatR/12.2.0": { + "type": "package", + "dependencies": { + "MediatR.Contracts": "[2.0.1, 3.0.0)", + "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0" + }, + "compile": { + "lib/net6.0/MediatR.dll": { + "related": ".xml" + } + }, + "runtime": { + "lib/net6.0/MediatR.dll": { + "related": ".xml" + } + } + }, + "MediatR.Contracts/2.0.1": { + "type": "package", + "compile": { + "lib/netstandard2.0/MediatR.Contracts.dll": { + "related": ".xml" + } + }, + "runtime": { + "lib/netstandard2.0/MediatR.Contracts.dll": { + "related": ".xml" + } + } + }, "Microsoft.CodeCoverage/17.3.2": { "type": "package", "compile": { @@ -172,7 +202,7 @@ "buildTransitive/net6.0/_._": {} } }, - "Microsoft.Extensions.DependencyInjection.Abstractions/7.0.0": { + "Microsoft.Extensions.DependencyInjection.Abstractions/8.0.0": { "type": "package", "compile": { "lib/net7.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": { @@ -2180,6 +2210,7 @@ "type": "project", "framework": ".NETCoreApp,Version=v7.0", "dependencies": { + "MediatR": "12.2.0", "Microsoft.EntityFrameworkCore": "7.0.10", "Microsoft.EntityFrameworkCore.Abstractions": "7.0.10", "Scrutor": "4.2.0" @@ -2269,6 +2300,36 @@ "coverlet.collector.nuspec" ] }, + "MediatR/12.2.0": { + "sha512": "8TUFrHapKi6D74PhnSNEguRsH91HNGyP3R4ZQdgDorJgl9Wac5Prh0vA33QfrniAaS6L2xNNhc6vxzg+5AIbwA==", + "type": "package", + "path": "mediatr/12.2.0", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "gradient_128x128.png", + "lib/net6.0/MediatR.dll", + "lib/net6.0/MediatR.xml", + "lib/netstandard2.0/MediatR.dll", + "lib/netstandard2.0/MediatR.xml", + "mediatr.12.2.0.nupkg.sha512", + "mediatr.nuspec" + ] + }, + "MediatR.Contracts/2.0.1": { + "sha512": "FYv95bNT4UwcNA+G/J1oX5OpRiSUxteXaUt2BJbRSdRNiIUNbggJF69wy6mnk2wYToaanpdXZdCwVylt96MpwQ==", + "type": "package", + "path": "mediatr.contracts/2.0.1", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "gradient_128x128.png", + "lib/netstandard2.0/MediatR.Contracts.dll", + "lib/netstandard2.0/MediatR.Contracts.xml", + "mediatr.contracts.2.0.1.nupkg.sha512", + "mediatr.contracts.nuspec" + ] + }, "Microsoft.CodeCoverage/17.3.2": { "sha512": "+CeYNY9hYNRgv1wAID5koeDVob1ZOrOYfRRTLxU9Zm5ZMDMkMZ8wzXgakxVv+jtk8tPdE8Ze9vVE+czMKapv/Q==", "type": "package", @@ -2518,15 +2579,16 @@ "useSharedDesignerContext.txt" ] }, - "Microsoft.Extensions.DependencyInjection.Abstractions/7.0.0": { - "sha512": "h3j/QfmFN4S0w4C2A6X7arXij/M/OVw3uQHSOFxnND4DyAzO1F9eMX7Eti7lU/OkSthEE0WzRsfT/Dmx86jzCw==", + "Microsoft.Extensions.DependencyInjection.Abstractions/8.0.0": { + "sha512": "cjWrLkJXK0rs4zofsK4bSdg+jhDLTaxrkXu4gS6Y7MAlCvRyNNgwY/lJi5RDlQOnSZweHqoyvgvbdvQsRIW+hg==", "type": "package", - "path": "microsoft.extensions.dependencyinjection.abstractions/7.0.0", + "path": "microsoft.extensions.dependencyinjection.abstractions/8.0.0", "files": [ ".nupkg.metadata", ".signature.p7s", "Icon.png", "LICENSE.TXT", + "PACKAGE.md", "THIRD-PARTY-NOTICES.TXT", "buildTransitive/net461/Microsoft.Extensions.DependencyInjection.Abstractions.targets", "buildTransitive/net462/_._", @@ -2538,11 +2600,13 @@ "lib/net6.0/Microsoft.Extensions.DependencyInjection.Abstractions.xml", "lib/net7.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll", "lib/net7.0/Microsoft.Extensions.DependencyInjection.Abstractions.xml", + "lib/net8.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll", + "lib/net8.0/Microsoft.Extensions.DependencyInjection.Abstractions.xml", "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll", "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.xml", "lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.Abstractions.dll", "lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.Abstractions.xml", - "microsoft.extensions.dependencyinjection.abstractions.7.0.0.nupkg.sha512", + "microsoft.extensions.dependencyinjection.abstractions.8.0.0.nupkg.sha512", "microsoft.extensions.dependencyinjection.abstractions.nuspec", "useSharedDesignerContext.txt" ] diff --git a/GenericRepository.Tests/obj/project.nuget.cache b/GenericRepository.Tests/obj/project.nuget.cache index 1003838..18ddcc2 100644 --- a/GenericRepository.Tests/obj/project.nuget.cache +++ b/GenericRepository.Tests/obj/project.nuget.cache @@ -1,11 +1,13 @@ { "version": 2, - "dgSpecHash": "njg6fgBNIKgbat3ZmRBjwhkUufTH43NBPCIhv11M51nvpA5uP0rrzfF6qtEQJFlbrC4AAYQhOY0RStybQ6CrxQ==", + "dgSpecHash": "RWCDK/SrPUqG8hGaIcr3DLEgSNFFoDOLbgr0UCloiyhMDR/rZVn9pRd/EITSyqxJdygQ5jWO1LI96vgxN7LoKA==", "success": true, "projectFilePath": "/Users/macbook/Projects/Generic Repository/GenericRepository.Tests/GenericRepository.Tests.csproj", "expectedPackageFiles": [ "/Users/macbook/.nuget/packages/castle.core/5.1.1/castle.core.5.1.1.nupkg.sha512", "/Users/macbook/.nuget/packages/coverlet.collector/3.1.2/coverlet.collector.3.1.2.nupkg.sha512", + "/Users/macbook/.nuget/packages/mediatr/12.2.0/mediatr.12.2.0.nupkg.sha512", + "/Users/macbook/.nuget/packages/mediatr.contracts/2.0.1/mediatr.contracts.2.0.1.nupkg.sha512", "/Users/macbook/.nuget/packages/microsoft.codecoverage/17.3.2/microsoft.codecoverage.17.3.2.nupkg.sha512", "/Users/macbook/.nuget/packages/microsoft.csharp/4.0.1/microsoft.csharp.4.0.1.nupkg.sha512", "/Users/macbook/.nuget/packages/microsoft.entityframeworkcore/7.0.10/microsoft.entityframeworkcore.7.0.10.nupkg.sha512", @@ -14,7 +16,7 @@ "/Users/macbook/.nuget/packages/microsoft.extensions.caching.abstractions/7.0.0/microsoft.extensions.caching.abstractions.7.0.0.nupkg.sha512", "/Users/macbook/.nuget/packages/microsoft.extensions.caching.memory/7.0.0/microsoft.extensions.caching.memory.7.0.0.nupkg.sha512", "/Users/macbook/.nuget/packages/microsoft.extensions.dependencyinjection/7.0.0/microsoft.extensions.dependencyinjection.7.0.0.nupkg.sha512", - "/Users/macbook/.nuget/packages/microsoft.extensions.dependencyinjection.abstractions/7.0.0/microsoft.extensions.dependencyinjection.abstractions.7.0.0.nupkg.sha512", + "/Users/macbook/.nuget/packages/microsoft.extensions.dependencyinjection.abstractions/8.0.0/microsoft.extensions.dependencyinjection.abstractions.8.0.0.nupkg.sha512", "/Users/macbook/.nuget/packages/microsoft.extensions.dependencymodel/6.0.0/microsoft.extensions.dependencymodel.6.0.0.nupkg.sha512", "/Users/macbook/.nuget/packages/microsoft.extensions.logging/7.0.0/microsoft.extensions.logging.7.0.0.nupkg.sha512", "/Users/macbook/.nuget/packages/microsoft.extensions.logging.abstractions/7.0.0/microsoft.extensions.logging.abstractions.7.0.0.nupkg.sha512", diff --git a/GenericRepository.Tests/obj/rider.project.restore.info b/GenericRepository.Tests/obj/rider.project.restore.info index a7d1ec4..def26f4 100644 --- a/GenericRepository.Tests/obj/rider.project.restore.info +++ b/GenericRepository.Tests/obj/rider.project.restore.info @@ -1 +1 @@ -16923490756683483 \ No newline at end of file +17088530912153700 \ No newline at end of file diff --git a/GenericRepository/Abstractions/BaseRepository.cs b/GenericRepository/Application/Abstractions/BaseRepository.cs similarity index 66% rename from GenericRepository/Abstractions/BaseRepository.cs rename to GenericRepository/Application/Abstractions/BaseRepository.cs index e72ad65..1feb70f 100644 --- a/GenericRepository/Abstractions/BaseRepository.cs +++ b/GenericRepository/Application/Abstractions/BaseRepository.cs @@ -1,7 +1,7 @@ -using GenericRepository.Abstractions.Interfaces.UnitOfWork; +using GenericRepository.Application.Interfaces.UnitOfWork; using Microsoft.EntityFrameworkCore; -namespace GenericRepository.Abstractions; +namespace GenericRepository.Application.Abstractions; public abstract class BaseRepository { diff --git a/GenericRepository/Enumerations/OrderType.cs b/GenericRepository/Application/Enumerations/OrderType.cs similarity index 50% rename from GenericRepository/Enumerations/OrderType.cs rename to GenericRepository/Application/Enumerations/OrderType.cs index e2a5b31..a31c5c6 100644 --- a/GenericRepository/Enumerations/OrderType.cs +++ b/GenericRepository/Application/Enumerations/OrderType.cs @@ -1,4 +1,4 @@ -namespace GenericRepository.Enumerations +namespace GenericRepository.Application.Enumerations { public enum OrderType { diff --git a/GenericRepository/Abstractions/Interfaces/GenericRepository/Command/IRepository.Async.cs b/GenericRepository/Application/Interfaces/GenericRepository/Command/IRepository.Async.cs similarity index 77% rename from GenericRepository/Abstractions/Interfaces/GenericRepository/Command/IRepository.Async.cs rename to GenericRepository/Application/Interfaces/GenericRepository/Command/IRepository.Async.cs index 9f040db..743a046 100644 --- a/GenericRepository/Abstractions/Interfaces/GenericRepository/Command/IRepository.Async.cs +++ b/GenericRepository/Application/Interfaces/GenericRepository/Command/IRepository.Async.cs @@ -1,8 +1,7 @@ using System.Linq.Expressions; -using GenericRepository.Entities; -using Microsoft.EntityFrameworkCore.Storage; +using GenericRepository.Domain; -namespace GenericRepository.Abstractions.Interfaces.GenericRepository.Command; +namespace GenericRepository.Application.Interfaces.GenericRepository.Command; public partial interface IRepository where T : BaseEntity { diff --git a/GenericRepository/Abstractions/Interfaces/GenericRepository/Command/IRepository.Sync.cs b/GenericRepository/Application/Interfaces/GenericRepository/Command/IRepository.Sync.cs similarity index 85% rename from GenericRepository/Abstractions/Interfaces/GenericRepository/Command/IRepository.Sync.cs rename to GenericRepository/Application/Interfaces/GenericRepository/Command/IRepository.Sync.cs index ed82054..731611f 100644 --- a/GenericRepository/Abstractions/Interfaces/GenericRepository/Command/IRepository.Sync.cs +++ b/GenericRepository/Application/Interfaces/GenericRepository/Command/IRepository.Sync.cs @@ -1,6 +1,6 @@ using Microsoft.EntityFrameworkCore.Storage; -namespace GenericRepository.Abstractions.Interfaces.GenericRepository.Command; +namespace GenericRepository.Application.Interfaces.GenericRepository.Command; public partial interface IRepository { diff --git a/GenericRepository/Abstractions/Interfaces/GenericRepository/Query/IQueryGenericRepository.Async.cs b/GenericRepository/Application/Interfaces/GenericRepository/Query/IQueryGenericRepository.Async.cs similarity index 95% rename from GenericRepository/Abstractions/Interfaces/GenericRepository/Query/IQueryGenericRepository.Async.cs rename to GenericRepository/Application/Interfaces/GenericRepository/Query/IQueryGenericRepository.Async.cs index 903578b..4010101 100644 --- a/GenericRepository/Abstractions/Interfaces/GenericRepository/Query/IQueryGenericRepository.Async.cs +++ b/GenericRepository/Application/Interfaces/GenericRepository/Query/IQueryGenericRepository.Async.cs @@ -1,7 +1,7 @@ using System.Linq.Expressions; -using GenericRepository.Enumerations; +using GenericRepository.Application.Enumerations; -namespace GenericRepository.Abstractions.Interfaces.GenericRepository.Query; +namespace GenericRepository.Application.Interfaces.GenericRepository.Query; public partial interface IQueryGenericRepository { diff --git a/GenericRepository/Abstractions/Interfaces/GenericRepository/Query/IQueryGenericRepository.Sync.cs b/GenericRepository/Application/Interfaces/GenericRepository/Query/IQueryGenericRepository.Sync.cs similarity index 93% rename from GenericRepository/Abstractions/Interfaces/GenericRepository/Query/IQueryGenericRepository.Sync.cs rename to GenericRepository/Application/Interfaces/GenericRepository/Query/IQueryGenericRepository.Sync.cs index c16b396..ed019a9 100644 --- a/GenericRepository/Abstractions/Interfaces/GenericRepository/Query/IQueryGenericRepository.Sync.cs +++ b/GenericRepository/Application/Interfaces/GenericRepository/Query/IQueryGenericRepository.Sync.cs @@ -1,7 +1,7 @@ using System.Linq.Expressions; -using GenericRepository.Enumerations; +using GenericRepository.Application.Enumerations; -namespace GenericRepository.Abstractions.Interfaces.GenericRepository.Query; +namespace GenericRepository.Application.Interfaces.GenericRepository.Query; public partial interface IQueryGenericRepository { diff --git a/GenericRepository/Abstractions/Interfaces/UnitOfWork/IUnitOfWork.cs b/GenericRepository/Application/Interfaces/UnitOfWork/IUnitOfWork.cs similarity index 77% rename from GenericRepository/Abstractions/Interfaces/UnitOfWork/IUnitOfWork.cs rename to GenericRepository/Application/Interfaces/UnitOfWork/IUnitOfWork.cs index b267772..c2a5523 100644 --- a/GenericRepository/Abstractions/Interfaces/UnitOfWork/IUnitOfWork.cs +++ b/GenericRepository/Application/Interfaces/UnitOfWork/IUnitOfWork.cs @@ -1,7 +1,6 @@ -using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Storage; -namespace GenericRepository.Abstractions.Interfaces.UnitOfWork; +namespace GenericRepository.Application.Interfaces.UnitOfWork; public interface IUnitOfWork { diff --git a/GenericRepository/Domain/BaseEntity.cs b/GenericRepository/Domain/BaseEntity.cs new file mode 100644 index 0000000..a51ffa6 --- /dev/null +++ b/GenericRepository/Domain/BaseEntity.cs @@ -0,0 +1,122 @@ +namespace GenericRepository.Domain; + +public abstract class BaseEntity : IEquatable +{ + public long Id { get; private set; } + public long CreateDate { get; private set; } + public long? UpdateDate { get; private set; } + public long? DeleteDate { get; private set; } + public bool IsDeleted { get; private set; } = false; + + private int? _hashCode; + public IReadOnlyList DomainEvents => _domainEvents.AsReadOnly(); + + private List _domainEvents = new(); + + public void ClearDomainEvents() + { + _domainEvents.Clear(); + } + + public void RaiseDomainEvent(IDomainEvent domainEvent) + { + _domainEvents.Add(domainEvent); + } + + public void RemoveDomainEvent(IDomainEvent eventItem) + { + _domainEvents?.Remove(eventItem); + } + + public BaseEntity Create() + { + this.CreateDate = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds(); + return this; + } + + public BaseEntity Update() + { + if (CreateDate == default) + throw new Exception("Entity State is not valid for updating"); + + this.UpdateDate = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds(); + return this; + } + + public BaseEntity Delete() + { + if (CreateDate == default) + throw new Exception("Entity State is not valid for deleting"); + + this.DeleteDate = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds(); + this.IsDeleted = true; + return this; + } + + public bool IsTransient() + { + return this.Id == default; + } + + public bool Equals(BaseEntity? other) + { + if (other is null) + return false; + + if (this.GetType() != other.GetType()) + return false; + + if (Object.ReferenceEquals(this, other)) + return true; + + BaseEntity item = other; + + if (item.IsTransient() || this.IsTransient()) + return false; + + return item.Id == this.Id; + } + + public override bool Equals(object? obj) + { + if (obj is not BaseEntity) + return false; + + if (Object.ReferenceEquals(this, obj)) + return true; + + if (this.GetType() != obj.GetType()) + return false; + + BaseEntity item = (BaseEntity)obj; + + if (item.IsTransient() || this.IsTransient()) + return false; + else + return item.Id == this.Id; + } + + public override int GetHashCode() + { + if (IsTransient()) + return base.GetHashCode(); + + if (!_hashCode.HasValue) + _hashCode = this.Id.GetHashCode() ^ 31; + + return _hashCode.Value; + } + + public static bool operator ==(BaseEntity left, BaseEntity right) + { + if (Object.Equals(left, null)) + return (Object.Equals(right, null)); + + return left.Equals(right); + } + + public static bool operator !=(BaseEntity left, BaseEntity right) + { + return !(left == right); + } +} \ No newline at end of file diff --git a/GenericRepository/Entities/ChangeLogEntity.cs b/GenericRepository/Domain/Entities/ChangeHistoryEntity.cs similarity index 85% rename from GenericRepository/Entities/ChangeLogEntity.cs rename to GenericRepository/Domain/Entities/ChangeHistoryEntity.cs index c4ef81b..dfe7332 100644 --- a/GenericRepository/Entities/ChangeLogEntity.cs +++ b/GenericRepository/Domain/Entities/ChangeHistoryEntity.cs @@ -1,4 +1,4 @@ -namespace GenericRepository.Entities; +namespace GenericRepository.Domain.Entities; public class ChangeHistoryEntity : BaseEntity { diff --git a/GenericRepository/Domain/Entities/OutBoxMessage.cs b/GenericRepository/Domain/Entities/OutBoxMessage.cs new file mode 100644 index 0000000..01bb0e9 --- /dev/null +++ b/GenericRepository/Domain/Entities/OutBoxMessage.cs @@ -0,0 +1,22 @@ +using System.Text.Json; + +namespace GenericRepository.Domain.Entities; + +public class OutBoxMessage : BaseEntity +{ + public OutBoxMessage(string type , string content) + { + Type = type; + Content = content; + } + + public OutBoxMessage(IDomainEvent domainEvent) + { + Type = domainEvent.GetType().Name; + Content = JsonSerializer.Serialize(domainEvent); + } + + public long Id { get; private set; } + public string Type { get; private set; } + public string Content { get; private set; } +} \ No newline at end of file diff --git a/GenericRepository/Domain/IDomainEvent.cs b/GenericRepository/Domain/IDomainEvent.cs new file mode 100644 index 0000000..8eeaba2 --- /dev/null +++ b/GenericRepository/Domain/IDomainEvent.cs @@ -0,0 +1,8 @@ +using MediatR; + +namespace GenericRepository.Domain; + +public interface IDomainEvent : INotification +{ + +} \ No newline at end of file diff --git a/GenericRepository/Entities/BaseEntity.cs b/GenericRepository/Entities/BaseEntity.cs deleted file mode 100644 index 6366d8b..0000000 --- a/GenericRepository/Entities/BaseEntity.cs +++ /dev/null @@ -1,34 +0,0 @@ -namespace GenericRepository.Entities; - -public abstract class BaseEntity -{ - public long CreateDate { get; private set; } - public long? UpdateDate { get; private set; } - public long? DeleteDate { get; private set; } - public bool IsDeleted { get; private set; } = false; - - public BaseEntity Create() - { - this.CreateDate = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds(); - return this; - } - public BaseEntity Update() - { - if (CreateDate is 0) - throw new Exception("Entity State is not valid for updating"); - - this.UpdateDate = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds(); - return this; - } - public BaseEntity Delete() - { - if (CreateDate is 0) - throw new Exception("Entity State is not valid for deleting"); - - this.DeleteDate = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds(); - this.IsDeleted = true; - return this; - } - - -} \ No newline at end of file diff --git a/GenericRepository/GenericRepository.csproj b/GenericRepository/GenericRepository.csproj index 226d075..7c663b9 100644 --- a/GenericRepository/GenericRepository.csproj +++ b/GenericRepository/GenericRepository.csproj @@ -7,9 +7,14 @@ + + + + + diff --git a/GenericRepository/Data/CommandContext.cs b/GenericRepository/Infrastructure/Context/CommandContext.cs similarity index 73% rename from GenericRepository/Data/CommandContext.cs rename to GenericRepository/Infrastructure/Context/CommandContext.cs index b0bf356..3a0f09b 100644 --- a/GenericRepository/Data/CommandContext.cs +++ b/GenericRepository/Infrastructure/Context/CommandContext.cs @@ -1,8 +1,9 @@ -using GenericRepository.Entities; +using System.Reflection; +using GenericRepository.Domain; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.ChangeTracking; -namespace GenericRepository.Data; +namespace GenericRepository.Infrastructure.Context; public class CommandContext : DbContext { @@ -11,6 +12,11 @@ public CommandContext(DbContextOptions options) : base(options) ChangeTracker.StateChanged += TrackChanges; ChangeTracker.Tracked += TrackChanges; } + + protected override void OnModelCreating(ModelBuilder modelBuilder) + { + modelBuilder.ApplyConfigurationsFromAssembly(Assembly.GetExecutingAssembly()); + } private static void TrackChanges(object sender, EntityEntryEventArgs e) { if (e.Entry.Entity is BaseEntity model) diff --git a/GenericRepository/Data/QueryContext.cs b/GenericRepository/Infrastructure/Context/QueryContext.cs similarity index 78% rename from GenericRepository/Data/QueryContext.cs rename to GenericRepository/Infrastructure/Context/QueryContext.cs index 0532e6e..7051bb0 100644 --- a/GenericRepository/Data/QueryContext.cs +++ b/GenericRepository/Infrastructure/Context/QueryContext.cs @@ -1,6 +1,6 @@ using Microsoft.EntityFrameworkCore; -namespace GenericRepository.Data; +namespace GenericRepository.Infrastructure.Context; public class QueryContext : DbContext { diff --git a/GenericRepository/Infrastructure/EfInterceptors/PublishDomainEventsInterceptor.cs b/GenericRepository/Infrastructure/EfInterceptors/PublishDomainEventsInterceptor.cs new file mode 100644 index 0000000..b6334c4 --- /dev/null +++ b/GenericRepository/Infrastructure/EfInterceptors/PublishDomainEventsInterceptor.cs @@ -0,0 +1,49 @@ +using GenericRepository.Domain; +using MediatR; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Diagnostics; + +namespace GenericRepository.Infrastructure.EfInterceptors; + +public sealed class PublishDomainEventsInterceptor : SaveChangesInterceptor +{ + private readonly IPublisher _publisher; + + public PublishDomainEventsInterceptor(IPublisher publisher) + { + _publisher = publisher; + } + + public override async ValueTask SavedChangesAsync( + SaveChangesCompletedEventData eventData, + int result, + CancellationToken cancellationToken = default) + { + if (eventData.Context is not null) + { + await PublishDomainEventsAsync(eventData.Context); + } + + return result; + } + + private async Task PublishDomainEventsAsync(DbContext context) + { + var domainEvents = context + .ChangeTracker + .Entries() + .Select(entry => entry.Entity) + .SelectMany(entity => + { + IReadOnlyList domainEvents = entity.DomainEvents; + entity.ClearDomainEvents(); + return domainEvents; + }) + .ToList(); + + foreach (IDomainEvent domainEvent in domainEvents) + { + await _publisher.Publish(domainEvent); + } + } +} \ No newline at end of file diff --git a/GenericRepository/Infrastructure/EntitytypeConfigurations/ChangeHistoryConfiguration.cs b/GenericRepository/Infrastructure/EntitytypeConfigurations/ChangeHistoryConfiguration.cs new file mode 100644 index 0000000..c97fbcb --- /dev/null +++ b/GenericRepository/Infrastructure/EntitytypeConfigurations/ChangeHistoryConfiguration.cs @@ -0,0 +1,16 @@ +using GenericRepository.Domain.Entities; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Metadata.Builders; + +namespace GenericRepository.Infrastructure.EntitytypeConfigurations; + +public class ChangeLogConfiguration : IEntityTypeConfiguration +{ + public void Configure(EntityTypeBuilder builder) + { + builder.HasKey(b => b.Id); + builder.Property(b => b.RelatedEntityType) + .HasMaxLength(150); + } +} + diff --git a/GenericRepository/Infrastructure/EntitytypeConfigurations/OutBoxMessageConfiguration.cs b/GenericRepository/Infrastructure/EntitytypeConfigurations/OutBoxMessageConfiguration.cs new file mode 100644 index 0000000..134782c --- /dev/null +++ b/GenericRepository/Infrastructure/EntitytypeConfigurations/OutBoxMessageConfiguration.cs @@ -0,0 +1,20 @@ +using GenericRepository.Domain.Entities; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Metadata.Builders; + +namespace GenericRepository.Infrastructure.EntitytypeConfigurations; + +public class OutBoxMessageConfiguration : IEntityTypeConfiguration +{ + public void Configure(EntityTypeBuilder builder) + { + builder.HasKey(b => b.Id); + + builder.Property(b => b.Type) + .IsRequired() + .HasMaxLength(150); + + builder.Property(b => b.Content) + .IsRequired(); + } +} \ No newline at end of file diff --git a/GenericRepository/Ioc/GenericRepositoryConfigurator.cs b/GenericRepository/Infrastructure/Ioc/GenericRepositoryConfigurator.cs similarity index 52% rename from GenericRepository/Ioc/GenericRepositoryConfigurator.cs rename to GenericRepository/Infrastructure/Ioc/GenericRepositoryConfigurator.cs index 1fa180c..4cde35b 100644 --- a/GenericRepository/Ioc/GenericRepositoryConfigurator.cs +++ b/GenericRepository/Infrastructure/Ioc/GenericRepositoryConfigurator.cs @@ -1,14 +1,15 @@ -using GenericRepository.Abstractions.Interfaces.GenericRepository.Command; -using GenericRepository.Abstractions.Interfaces.GenericRepository.Query; -using GenericRepository.Abstractions.Interfaces.UnitOfWork; -using GenericRepository.Data; -using GenericRepository.Repository.GenericRepository.Command; -using GenericRepository.Repository.GenericRepository.Query; -using GenericRepository.Repository.UnitOfWork; +using GenericRepository.Application.Interfaces.GenericRepository.Command; +using GenericRepository.Application.Interfaces.GenericRepository.Query; +using GenericRepository.Application.Interfaces.UnitOfWork; +using GenericRepository.Infrastructure.Context; +using GenericRepository.Infrastructure.EfInterceptors; +using GenericRepository.Infrastructure.Repository.GenericRepository.Command; +using GenericRepository.Infrastructure.Repository.GenericRepository.Query; +using GenericRepository.Infrastructure.Repository.UnitOfWork; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; -namespace GenericRepository.Configuration +namespace GenericRepository.Infrastructure.Ioc { public static class GenericRepositoryConfigurator { @@ -18,6 +19,7 @@ public static void InjectServices(IServiceCollection services) services.AddTransient(); services.AddScoped(); services.AddScoped(); + services.AddSingleton(); services.AddTransient(typeof(IRepository<>), typeof(Repository<>)); services.AddTransient(typeof(IQueryGenericRepository<>), typeof(QueryGenericRepository<>)); services.Decorate(typeof(IQueryGenericRepository<>), typeof(CacheRepository<>)); diff --git a/GenericRepository/Repository/GenericRepository/Command/Repository.Async.cs b/GenericRepository/Infrastructure/Repository/GenericRepository/Command/Repository.Async.cs similarity index 87% rename from GenericRepository/Repository/GenericRepository/Command/Repository.Async.cs rename to GenericRepository/Infrastructure/Repository/GenericRepository/Command/Repository.Async.cs index 228a08d..4c705b9 100644 --- a/GenericRepository/Repository/GenericRepository/Command/Repository.Async.cs +++ b/GenericRepository/Infrastructure/Repository/GenericRepository/Command/Repository.Async.cs @@ -1,11 +1,10 @@ using System.Linq.Expressions; -using GenericRepository.Abstractions.Interfaces.GenericRepository.Command; -using GenericRepository.Data; -using GenericRepository.Entities; +using GenericRepository.Application.Interfaces.GenericRepository.Command; +using GenericRepository.Domain; +using GenericRepository.Infrastructure.Context; using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Storage; -namespace GenericRepository.Repository.GenericRepository.Command; +namespace GenericRepository.Infrastructure.Repository.GenericRepository.Command; public sealed partial class Repository : IRepository where T : BaseEntity { diff --git a/GenericRepository/Repository/GenericRepository/Command/Repository.Sync.cs b/GenericRepository/Infrastructure/Repository/GenericRepository/Command/Repository.Sync.cs similarity index 92% rename from GenericRepository/Repository/GenericRepository/Command/Repository.Sync.cs rename to GenericRepository/Infrastructure/Repository/GenericRepository/Command/Repository.Sync.cs index c7bf189..9157464 100644 --- a/GenericRepository/Repository/GenericRepository/Command/Repository.Sync.cs +++ b/GenericRepository/Infrastructure/Repository/GenericRepository/Command/Repository.Sync.cs @@ -1,8 +1,8 @@ -using GenericRepository.Entities; +using GenericRepository.Domain; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Storage; -namespace GenericRepository.Repository.GenericRepository.Command; +namespace GenericRepository.Infrastructure.Repository.GenericRepository.Command; public sealed partial class Repository where T : BaseEntity { diff --git a/GenericRepository/Repository/GenericRepository/Query/CacheRepository.cs b/GenericRepository/Infrastructure/Repository/GenericRepository/Query/CacheRepository.cs similarity index 97% rename from GenericRepository/Repository/GenericRepository/Query/CacheRepository.cs rename to GenericRepository/Infrastructure/Repository/GenericRepository/Query/CacheRepository.cs index 743cfe4..22a6da8 100644 --- a/GenericRepository/Repository/GenericRepository/Query/CacheRepository.cs +++ b/GenericRepository/Infrastructure/Repository/GenericRepository/Query/CacheRepository.cs @@ -1,10 +1,10 @@ using System.Linq.Expressions; -using GenericRepository.Abstractions.Interfaces.GenericRepository.Query; -using GenericRepository.Entities; -using GenericRepository.Enumerations; +using GenericRepository.Application.Enumerations; +using GenericRepository.Application.Interfaces.GenericRepository.Query; +using GenericRepository.Domain; using Microsoft.Extensions.Caching.Memory; -namespace GenericRepository.Repository.GenericRepository.Query; +namespace GenericRepository.Infrastructure.Repository.GenericRepository.Query; public sealed class CacheRepository : IQueryGenericRepository where T : BaseEntity { diff --git a/GenericRepository/Repository/GenericRepository/Query/QueryGenericRepository.Async.cs b/GenericRepository/Infrastructure/Repository/GenericRepository/Query/QueryGenericRepository.Async.cs similarity index 96% rename from GenericRepository/Repository/GenericRepository/Query/QueryGenericRepository.Async.cs rename to GenericRepository/Infrastructure/Repository/GenericRepository/Query/QueryGenericRepository.Async.cs index 9a90b6f..b408280 100644 --- a/GenericRepository/Repository/GenericRepository/Query/QueryGenericRepository.Async.cs +++ b/GenericRepository/Infrastructure/Repository/GenericRepository/Query/QueryGenericRepository.Async.cs @@ -1,10 +1,10 @@ using System.Linq.Expressions; -using GenericRepository.Abstractions.Interfaces.GenericRepository.Query; -using GenericRepository.Data; -using GenericRepository.Enumerations; +using GenericRepository.Application.Enumerations; +using GenericRepository.Application.Interfaces.GenericRepository.Query; +using GenericRepository.Infrastructure.Context; using Microsoft.EntityFrameworkCore; -namespace GenericRepository.Repository.GenericRepository.Query; +namespace GenericRepository.Infrastructure.Repository.GenericRepository.Query; public sealed partial class QueryGenericRepository : IQueryGenericRepository { diff --git a/GenericRepository/Repository/GenericRepository/Query/QueryGenericRepository.Sync.cs b/GenericRepository/Infrastructure/Repository/GenericRepository/Query/QueryGenericRepository.Sync.cs similarity index 96% rename from GenericRepository/Repository/GenericRepository/Query/QueryGenericRepository.Sync.cs rename to GenericRepository/Infrastructure/Repository/GenericRepository/Query/QueryGenericRepository.Sync.cs index dd0016d..1d74ed3 100644 --- a/GenericRepository/Repository/GenericRepository/Query/QueryGenericRepository.Sync.cs +++ b/GenericRepository/Infrastructure/Repository/GenericRepository/Query/QueryGenericRepository.Sync.cs @@ -1,10 +1,10 @@ using System.Linq.Expressions; -using GenericRepository.Abstractions.Interfaces.GenericRepository.Query; -using GenericRepository.Entities; -using GenericRepository.Enumerations; +using GenericRepository.Application.Enumerations; +using GenericRepository.Application.Interfaces.GenericRepository.Query; +using GenericRepository.Domain; using Microsoft.EntityFrameworkCore; -namespace GenericRepository.Repository.GenericRepository.Query; +namespace GenericRepository.Infrastructure.Repository.GenericRepository.Query; public sealed partial class QueryGenericRepository : IQueryGenericRepository where T : BaseEntity { diff --git a/GenericRepository/Repository/UnitOfWork/UnitOfWork.cs b/GenericRepository/Infrastructure/Repository/UnitOfWork/UnitOfWork.cs similarity index 89% rename from GenericRepository/Repository/UnitOfWork/UnitOfWork.cs rename to GenericRepository/Infrastructure/Repository/UnitOfWork/UnitOfWork.cs index 39bbf01..f210ada 100644 --- a/GenericRepository/Repository/UnitOfWork/UnitOfWork.cs +++ b/GenericRepository/Infrastructure/Repository/UnitOfWork/UnitOfWork.cs @@ -1,8 +1,8 @@ -using GenericRepository.Abstractions.Interfaces.UnitOfWork; +using GenericRepository.Application.Interfaces.UnitOfWork; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Storage; -namespace GenericRepository.Repository.UnitOfWork; +namespace GenericRepository.Infrastructure.Repository.UnitOfWork; public class UnitOfWork : IUnitOfWork { diff --git a/GenericRepository/bin/Debug/net7.0/GenericRepository.deps.json b/GenericRepository/bin/Debug/net7.0/GenericRepository.deps.json index b391806..5e9e85b 100644 --- a/GenericRepository/bin/Debug/net7.0/GenericRepository.deps.json +++ b/GenericRepository/bin/Debug/net7.0/GenericRepository.deps.json @@ -8,6 +8,7 @@ ".NETCoreApp,Version=v7.0": { "GenericRepository/1.0.0": { "dependencies": { + "MediatR": "12.2.0", "Microsoft.EntityFrameworkCore": "7.0.10", "Microsoft.EntityFrameworkCore.Abstractions": "7.0.10", "Scrutor": "4.2.0" @@ -16,6 +17,26 @@ "GenericRepository.dll": {} } }, + "MediatR/12.2.0": { + "dependencies": { + "MediatR.Contracts": "2.0.1", + "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0" + }, + "runtime": { + "lib/net6.0/MediatR.dll": { + "assemblyVersion": "12.0.0.0", + "fileVersion": "12.2.0.0" + } + } + }, + "MediatR.Contracts/2.0.1": { + "runtime": { + "lib/netstandard2.0/MediatR.Contracts.dll": { + "assemblyVersion": "2.0.1.0", + "fileVersion": "2.0.1.0" + } + } + }, "Microsoft.EntityFrameworkCore/7.0.10": { "dependencies": { "Microsoft.EntityFrameworkCore.Abstractions": "7.0.10", @@ -54,7 +75,7 @@ "Microsoft.Extensions.Caching.Memory/7.0.0": { "dependencies": { "Microsoft.Extensions.Caching.Abstractions": "7.0.0", - "Microsoft.Extensions.DependencyInjection.Abstractions": "7.0.0", + "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "7.0.0", "Microsoft.Extensions.Options": "7.0.0", "Microsoft.Extensions.Primitives": "7.0.0" @@ -68,7 +89,7 @@ }, "Microsoft.Extensions.DependencyInjection/7.0.0": { "dependencies": { - "Microsoft.Extensions.DependencyInjection.Abstractions": "7.0.0" + "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0" }, "runtime": { "lib/net7.0/Microsoft.Extensions.DependencyInjection.dll": { @@ -77,11 +98,11 @@ } } }, - "Microsoft.Extensions.DependencyInjection.Abstractions/7.0.0": { + "Microsoft.Extensions.DependencyInjection.Abstractions/8.0.0": { "runtime": { "lib/net7.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": { - "assemblyVersion": "7.0.0.0", - "fileVersion": "7.0.22.51805" + "assemblyVersion": "8.0.0.0", + "fileVersion": "8.0.23.53103" } } }, @@ -103,7 +124,7 @@ "Microsoft.Extensions.Logging/7.0.0": { "dependencies": { "Microsoft.Extensions.DependencyInjection": "7.0.0", - "Microsoft.Extensions.DependencyInjection.Abstractions": "7.0.0", + "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Logging.Abstractions": "7.0.0", "Microsoft.Extensions.Options": "7.0.0" }, @@ -124,7 +145,7 @@ }, "Microsoft.Extensions.Options/7.0.0": { "dependencies": { - "Microsoft.Extensions.DependencyInjection.Abstractions": "7.0.0", + "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.Primitives": "7.0.0" }, "runtime": { @@ -144,7 +165,7 @@ }, "Scrutor/4.2.0": { "dependencies": { - "Microsoft.Extensions.DependencyInjection.Abstractions": "7.0.0", + "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0", "Microsoft.Extensions.DependencyModel": "6.0.0" }, "runtime": { @@ -176,6 +197,20 @@ "serviceable": false, "sha512": "" }, + "MediatR/12.2.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-8TUFrHapKi6D74PhnSNEguRsH91HNGyP3R4ZQdgDorJgl9Wac5Prh0vA33QfrniAaS6L2xNNhc6vxzg+5AIbwA==", + "path": "mediatr/12.2.0", + "hashPath": "mediatr.12.2.0.nupkg.sha512" + }, + "MediatR.Contracts/2.0.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-FYv95bNT4UwcNA+G/J1oX5OpRiSUxteXaUt2BJbRSdRNiIUNbggJF69wy6mnk2wYToaanpdXZdCwVylt96MpwQ==", + "path": "mediatr.contracts/2.0.1", + "hashPath": "mediatr.contracts.2.0.1.nupkg.sha512" + }, "Microsoft.EntityFrameworkCore/7.0.10": { "type": "package", "serviceable": true, @@ -218,12 +253,12 @@ "path": "microsoft.extensions.dependencyinjection/7.0.0", "hashPath": "microsoft.extensions.dependencyinjection.7.0.0.nupkg.sha512" }, - "Microsoft.Extensions.DependencyInjection.Abstractions/7.0.0": { + "Microsoft.Extensions.DependencyInjection.Abstractions/8.0.0": { "type": "package", "serviceable": true, - "sha512": "sha512-h3j/QfmFN4S0w4C2A6X7arXij/M/OVw3uQHSOFxnND4DyAzO1F9eMX7Eti7lU/OkSthEE0WzRsfT/Dmx86jzCw==", - "path": "microsoft.extensions.dependencyinjection.abstractions/7.0.0", - "hashPath": "microsoft.extensions.dependencyinjection.abstractions.7.0.0.nupkg.sha512" + "sha512": "sha512-cjWrLkJXK0rs4zofsK4bSdg+jhDLTaxrkXu4gS6Y7MAlCvRyNNgwY/lJi5RDlQOnSZweHqoyvgvbdvQsRIW+hg==", + "path": "microsoft.extensions.dependencyinjection.abstractions/8.0.0", + "hashPath": "microsoft.extensions.dependencyinjection.abstractions.8.0.0.nupkg.sha512" }, "Microsoft.Extensions.DependencyModel/6.0.0": { "type": "package", diff --git a/GenericRepository/bin/Debug/net7.0/GenericRepository.dll b/GenericRepository/bin/Debug/net7.0/GenericRepository.dll index 1d1e42b..b4f54dc 100644 Binary files a/GenericRepository/bin/Debug/net7.0/GenericRepository.dll and b/GenericRepository/bin/Debug/net7.0/GenericRepository.dll differ diff --git a/GenericRepository/bin/Debug/net7.0/GenericRepository.pdb b/GenericRepository/bin/Debug/net7.0/GenericRepository.pdb index d966c7a..b0b6b59 100644 Binary files a/GenericRepository/bin/Debug/net7.0/GenericRepository.pdb and b/GenericRepository/bin/Debug/net7.0/GenericRepository.pdb differ diff --git a/GenericRepository/obj/Debug/net7.0/GenericRepository.assets.cache b/GenericRepository/obj/Debug/net7.0/GenericRepository.assets.cache index 5f61266..53ac8bc 100644 Binary files a/GenericRepository/obj/Debug/net7.0/GenericRepository.assets.cache and b/GenericRepository/obj/Debug/net7.0/GenericRepository.assets.cache differ diff --git a/GenericRepository/obj/Debug/net7.0/GenericRepository.csproj.AssemblyReference.cache b/GenericRepository/obj/Debug/net7.0/GenericRepository.csproj.AssemblyReference.cache index c095ffb..bfac928 100644 Binary files a/GenericRepository/obj/Debug/net7.0/GenericRepository.csproj.AssemblyReference.cache and b/GenericRepository/obj/Debug/net7.0/GenericRepository.csproj.AssemblyReference.cache differ diff --git a/GenericRepository/obj/Debug/net7.0/GenericRepository.csproj.CoreCompileInputs.cache b/GenericRepository/obj/Debug/net7.0/GenericRepository.csproj.CoreCompileInputs.cache index fe4353b..d557eef 100644 --- a/GenericRepository/obj/Debug/net7.0/GenericRepository.csproj.CoreCompileInputs.cache +++ b/GenericRepository/obj/Debug/net7.0/GenericRepository.csproj.CoreCompileInputs.cache @@ -1 +1 @@ -6a3b68e18611e5982344682ec0aac97e528bf3aa +516ef6b515157b3a5a0572aa4c5f68099870d1ee diff --git a/GenericRepository/obj/Debug/net7.0/GenericRepository.dll b/GenericRepository/obj/Debug/net7.0/GenericRepository.dll index 1d1e42b..b4f54dc 100644 Binary files a/GenericRepository/obj/Debug/net7.0/GenericRepository.dll and b/GenericRepository/obj/Debug/net7.0/GenericRepository.dll differ diff --git a/GenericRepository/obj/Debug/net7.0/GenericRepository.pdb b/GenericRepository/obj/Debug/net7.0/GenericRepository.pdb index d966c7a..b0b6b59 100644 Binary files a/GenericRepository/obj/Debug/net7.0/GenericRepository.pdb and b/GenericRepository/obj/Debug/net7.0/GenericRepository.pdb differ diff --git a/GenericRepository/obj/Debug/net7.0/ref/GenericRepository.dll b/GenericRepository/obj/Debug/net7.0/ref/GenericRepository.dll index 4c0550d..c41f484 100644 Binary files a/GenericRepository/obj/Debug/net7.0/ref/GenericRepository.dll and b/GenericRepository/obj/Debug/net7.0/ref/GenericRepository.dll differ diff --git a/GenericRepository/obj/Debug/net7.0/refint/GenericRepository.dll b/GenericRepository/obj/Debug/net7.0/refint/GenericRepository.dll index 4c0550d..c41f484 100644 Binary files a/GenericRepository/obj/Debug/net7.0/refint/GenericRepository.dll and b/GenericRepository/obj/Debug/net7.0/refint/GenericRepository.dll differ diff --git a/GenericRepository/obj/GenericRepository.csproj.nuget.dgspec.json b/GenericRepository/obj/GenericRepository.csproj.nuget.dgspec.json index bfe962b..805b25b 100644 --- a/GenericRepository/obj/GenericRepository.csproj.nuget.dgspec.json +++ b/GenericRepository/obj/GenericRepository.csproj.nuget.dgspec.json @@ -38,6 +38,10 @@ "net7.0": { "targetAlias": "net7.0", "dependencies": { + "MediatR": { + "target": "Package", + "version": "[12.2.0, )" + }, "Microsoft.EntityFrameworkCore": { "target": "Package", "version": "[7.0.10, )" diff --git a/GenericRepository/obj/project.assets.json b/GenericRepository/obj/project.assets.json index 30e83b9..0e47ff0 100644 --- a/GenericRepository/obj/project.assets.json +++ b/GenericRepository/obj/project.assets.json @@ -2,6 +2,36 @@ "version": 3, "targets": { "net7.0": { + "MediatR/12.2.0": { + "type": "package", + "dependencies": { + "MediatR.Contracts": "[2.0.1, 3.0.0)", + "Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.0" + }, + "compile": { + "lib/net6.0/MediatR.dll": { + "related": ".xml" + } + }, + "runtime": { + "lib/net6.0/MediatR.dll": { + "related": ".xml" + } + } + }, + "MediatR.Contracts/2.0.1": { + "type": "package", + "compile": { + "lib/netstandard2.0/MediatR.Contracts.dll": { + "related": ".xml" + } + }, + "runtime": { + "lib/netstandard2.0/MediatR.Contracts.dll": { + "related": ".xml" + } + } + }, "Microsoft.EntityFrameworkCore/7.0.10": { "type": "package", "dependencies": { @@ -108,7 +138,7 @@ "buildTransitive/net6.0/_._": {} } }, - "Microsoft.Extensions.DependencyInjection.Abstractions/7.0.0": { + "Microsoft.Extensions.DependencyInjection.Abstractions/8.0.0": { "type": "package", "compile": { "lib/net7.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": { @@ -317,6 +347,36 @@ } }, "libraries": { + "MediatR/12.2.0": { + "sha512": "8TUFrHapKi6D74PhnSNEguRsH91HNGyP3R4ZQdgDorJgl9Wac5Prh0vA33QfrniAaS6L2xNNhc6vxzg+5AIbwA==", + "type": "package", + "path": "mediatr/12.2.0", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "gradient_128x128.png", + "lib/net6.0/MediatR.dll", + "lib/net6.0/MediatR.xml", + "lib/netstandard2.0/MediatR.dll", + "lib/netstandard2.0/MediatR.xml", + "mediatr.12.2.0.nupkg.sha512", + "mediatr.nuspec" + ] + }, + "MediatR.Contracts/2.0.1": { + "sha512": "FYv95bNT4UwcNA+G/J1oX5OpRiSUxteXaUt2BJbRSdRNiIUNbggJF69wy6mnk2wYToaanpdXZdCwVylt96MpwQ==", + "type": "package", + "path": "mediatr.contracts/2.0.1", + "files": [ + ".nupkg.metadata", + ".signature.p7s", + "gradient_128x128.png", + "lib/netstandard2.0/MediatR.Contracts.dll", + "lib/netstandard2.0/MediatR.Contracts.xml", + "mediatr.contracts.2.0.1.nupkg.sha512", + "mediatr.contracts.nuspec" + ] + }, "Microsoft.EntityFrameworkCore/7.0.10": { "sha512": "24NbXJqJ/x8u88/agqeb1pLdAF9+9StDLA36+P/3g5xsJPOaB2GxXn7epR8dWpZTgHsNZ7cvBMxBgfFmF+xZlg==", "type": "package", @@ -443,15 +503,16 @@ "useSharedDesignerContext.txt" ] }, - "Microsoft.Extensions.DependencyInjection.Abstractions/7.0.0": { - "sha512": "h3j/QfmFN4S0w4C2A6X7arXij/M/OVw3uQHSOFxnND4DyAzO1F9eMX7Eti7lU/OkSthEE0WzRsfT/Dmx86jzCw==", + "Microsoft.Extensions.DependencyInjection.Abstractions/8.0.0": { + "sha512": "cjWrLkJXK0rs4zofsK4bSdg+jhDLTaxrkXu4gS6Y7MAlCvRyNNgwY/lJi5RDlQOnSZweHqoyvgvbdvQsRIW+hg==", "type": "package", - "path": "microsoft.extensions.dependencyinjection.abstractions/7.0.0", + "path": "microsoft.extensions.dependencyinjection.abstractions/8.0.0", "files": [ ".nupkg.metadata", ".signature.p7s", "Icon.png", "LICENSE.TXT", + "PACKAGE.md", "THIRD-PARTY-NOTICES.TXT", "buildTransitive/net461/Microsoft.Extensions.DependencyInjection.Abstractions.targets", "buildTransitive/net462/_._", @@ -463,11 +524,13 @@ "lib/net6.0/Microsoft.Extensions.DependencyInjection.Abstractions.xml", "lib/net7.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll", "lib/net7.0/Microsoft.Extensions.DependencyInjection.Abstractions.xml", + "lib/net8.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll", + "lib/net8.0/Microsoft.Extensions.DependencyInjection.Abstractions.xml", "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll", "lib/netstandard2.0/Microsoft.Extensions.DependencyInjection.Abstractions.xml", "lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.Abstractions.dll", "lib/netstandard2.1/Microsoft.Extensions.DependencyInjection.Abstractions.xml", - "microsoft.extensions.dependencyinjection.abstractions.7.0.0.nupkg.sha512", + "microsoft.extensions.dependencyinjection.abstractions.8.0.0.nupkg.sha512", "microsoft.extensions.dependencyinjection.abstractions.nuspec", "useSharedDesignerContext.txt" ] @@ -832,6 +895,7 @@ }, "projectFileDependencyGroups": { "net7.0": [ + "MediatR >= 12.2.0", "Microsoft.EntityFrameworkCore >= 7.0.10", "Microsoft.EntityFrameworkCore.Abstractions >= 7.0.10", "Scrutor >= 4.2.0" @@ -874,6 +938,10 @@ "net7.0": { "targetAlias": "net7.0", "dependencies": { + "MediatR": { + "target": "Package", + "version": "[12.2.0, )" + }, "Microsoft.EntityFrameworkCore": { "target": "Package", "version": "[7.0.10, )" diff --git a/GenericRepository/obj/project.nuget.cache b/GenericRepository/obj/project.nuget.cache index cfbe3db..fa06235 100644 --- a/GenericRepository/obj/project.nuget.cache +++ b/GenericRepository/obj/project.nuget.cache @@ -1,16 +1,18 @@ { "version": 2, - "dgSpecHash": "BHrNXsZkPLqGKWmhmZsPKTBU5m4RWd9vvhzUqw3HU8nrqqFdEw0wEkNkR2igz1bW8yJ4g/c/HXzpqHnwmcBPXQ==", + "dgSpecHash": "bQg9ON6yHTRa9QTVLzAWAAsO6opsH/bCBUlT4YKev7kiky/cyoWdf3Dc6a9PeqlYdWL4g8Gb/Da1ZSFElmdAVQ==", "success": true, "projectFilePath": "/Users/macbook/Projects/Generic Repository/GenericRepository/GenericRepository.csproj", "expectedPackageFiles": [ + "/Users/macbook/.nuget/packages/mediatr/12.2.0/mediatr.12.2.0.nupkg.sha512", + "/Users/macbook/.nuget/packages/mediatr.contracts/2.0.1/mediatr.contracts.2.0.1.nupkg.sha512", "/Users/macbook/.nuget/packages/microsoft.entityframeworkcore/7.0.10/microsoft.entityframeworkcore.7.0.10.nupkg.sha512", "/Users/macbook/.nuget/packages/microsoft.entityframeworkcore.abstractions/7.0.10/microsoft.entityframeworkcore.abstractions.7.0.10.nupkg.sha512", "/Users/macbook/.nuget/packages/microsoft.entityframeworkcore.analyzers/7.0.10/microsoft.entityframeworkcore.analyzers.7.0.10.nupkg.sha512", "/Users/macbook/.nuget/packages/microsoft.extensions.caching.abstractions/7.0.0/microsoft.extensions.caching.abstractions.7.0.0.nupkg.sha512", "/Users/macbook/.nuget/packages/microsoft.extensions.caching.memory/7.0.0/microsoft.extensions.caching.memory.7.0.0.nupkg.sha512", "/Users/macbook/.nuget/packages/microsoft.extensions.dependencyinjection/7.0.0/microsoft.extensions.dependencyinjection.7.0.0.nupkg.sha512", - "/Users/macbook/.nuget/packages/microsoft.extensions.dependencyinjection.abstractions/7.0.0/microsoft.extensions.dependencyinjection.abstractions.7.0.0.nupkg.sha512", + "/Users/macbook/.nuget/packages/microsoft.extensions.dependencyinjection.abstractions/8.0.0/microsoft.extensions.dependencyinjection.abstractions.8.0.0.nupkg.sha512", "/Users/macbook/.nuget/packages/microsoft.extensions.dependencymodel/6.0.0/microsoft.extensions.dependencymodel.6.0.0.nupkg.sha512", "/Users/macbook/.nuget/packages/microsoft.extensions.logging/7.0.0/microsoft.extensions.logging.7.0.0.nupkg.sha512", "/Users/macbook/.nuget/packages/microsoft.extensions.logging.abstractions/7.0.0/microsoft.extensions.logging.abstractions.7.0.0.nupkg.sha512", diff --git a/GenericRepository/obj/project.packagespec.json b/GenericRepository/obj/project.packagespec.json index 3e97ece..cb63fb4 100644 --- a/GenericRepository/obj/project.packagespec.json +++ b/GenericRepository/obj/project.packagespec.json @@ -1 +1 @@ -"restore":{"projectUniqueName":"/Users/macbook/Projects/Generic Repository/GenericRepository/GenericRepository.csproj","projectName":"GenericRepository","projectPath":"/Users/macbook/Projects/Generic Repository/GenericRepository/GenericRepository.csproj","outputPath":"/Users/macbook/Projects/Generic Repository/GenericRepository/obj/","projectStyle":"PackageReference","originalTargetFrameworks":["net7.0"],"sources":{"https://api.nuget.org/v3/index.json":{}},"frameworks":{"net7.0":{"targetAlias":"net7.0","projectReferences":{}}},"warningProperties":{"warnAsError":["NU1605"]}}"frameworks":{"net7.0":{"targetAlias":"net7.0","dependencies":{"Microsoft.EntityFrameworkCore":{"target":"Package","version":"[7.0.10, )"},"Microsoft.EntityFrameworkCore.Abstractions":{"target":"Package","version":"[7.0.10, )"},"Scrutor":{"target":"Package","version":"[4.2.0, )"}},"imports":["net461","net462","net47","net471","net472","net48","net481"],"assetTargetFallback":true,"warn":true,"frameworkReferences":{"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"/usr/local/share/dotnet/sdk/7.0.101/RuntimeIdentifierGraph.json"}} \ No newline at end of file +"restore":{"projectUniqueName":"/Users/macbook/Projects/Generic Repository/GenericRepository/GenericRepository.csproj","projectName":"GenericRepository","projectPath":"/Users/macbook/Projects/Generic Repository/GenericRepository/GenericRepository.csproj","outputPath":"/Users/macbook/Projects/Generic Repository/GenericRepository/obj/","projectStyle":"PackageReference","originalTargetFrameworks":["net7.0"],"sources":{"https://api.nuget.org/v3/index.json":{}},"frameworks":{"net7.0":{"targetAlias":"net7.0","projectReferences":{}}},"warningProperties":{"warnAsError":["NU1605"]}}"frameworks":{"net7.0":{"targetAlias":"net7.0","dependencies":{"MediatR":{"target":"Package","version":"[12.2.0, )"},"Microsoft.EntityFrameworkCore":{"target":"Package","version":"[7.0.10, )"},"Microsoft.EntityFrameworkCore.Abstractions":{"target":"Package","version":"[7.0.10, )"},"Scrutor":{"target":"Package","version":"[4.2.0, )"}},"imports":["net461","net462","net47","net471","net472","net48","net481"],"assetTargetFallback":true,"warn":true,"frameworkReferences":{"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"/usr/local/share/dotnet/sdk/7.0.101/RuntimeIdentifierGraph.json"}} \ No newline at end of file diff --git a/GenericRepository/obj/rider.project.restore.info b/GenericRepository/obj/rider.project.restore.info index 432b715..b8fdb26 100644 --- a/GenericRepository/obj/rider.project.restore.info +++ b/GenericRepository/obj/rider.project.restore.info @@ -1 +1 @@ -16923490756035892 \ No newline at end of file +17088530911067702 \ No newline at end of file