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 85d51f1..8ef13ad 100644 --- a/GenericRepository.Tests/bin/Debug/net7.0/GenericRepository.Tests.deps.json +++ b/GenericRepository.Tests/bin/Debug/net7.0/GenericRepository.Tests.deps.json @@ -60,30 +60,30 @@ "System.Threading": "4.3.0" } }, - "Microsoft.EntityFrameworkCore/7.0.0": { + "Microsoft.EntityFrameworkCore/7.0.10": { "dependencies": { - "Microsoft.EntityFrameworkCore.Abstractions": "7.0.0", - "Microsoft.EntityFrameworkCore.Analyzers": "7.0.0", + "Microsoft.EntityFrameworkCore.Abstractions": "7.0.10", + "Microsoft.EntityFrameworkCore.Analyzers": "7.0.10", "Microsoft.Extensions.Caching.Memory": "7.0.0", "Microsoft.Extensions.DependencyInjection": "7.0.0", "Microsoft.Extensions.Logging": "7.0.0" }, "runtime": { "lib/net6.0/Microsoft.EntityFrameworkCore.dll": { - "assemblyVersion": "7.0.0.0", - "fileVersion": "7.0.22.51807" + "assemblyVersion": "7.0.10.0", + "fileVersion": "7.0.1023.36204" } } }, - "Microsoft.EntityFrameworkCore.Abstractions/7.0.0": { + "Microsoft.EntityFrameworkCore.Abstractions/7.0.10": { "runtime": { "lib/net6.0/Microsoft.EntityFrameworkCore.Abstractions.dll": { - "assemblyVersion": "7.0.0.0", - "fileVersion": "7.0.22.51807" + "assemblyVersion": "7.0.10.0", + "fileVersion": "7.0.1023.36204" } } }, - "Microsoft.EntityFrameworkCore.Analyzers/7.0.0": {}, + "Microsoft.EntityFrameworkCore.Analyzers/7.0.10": {}, "Microsoft.Extensions.Caching.Abstractions/7.0.0": { "dependencies": { "Microsoft.Extensions.Primitives": "7.0.0" @@ -461,7 +461,7 @@ }, "Moq.EntityFrameworkCore/7.0.0.2": { "dependencies": { - "Microsoft.EntityFrameworkCore": "7.0.0", + "Microsoft.EntityFrameworkCore": "7.0.10", "Moq": "4.18.4" }, "runtime": { @@ -1293,8 +1293,8 @@ "xunit.runner.visualstudio/2.4.5": {}, "GenericRepository/1.0.0": { "dependencies": { - "Microsoft.EntityFrameworkCore": "7.0.0", - "Microsoft.EntityFrameworkCore.Abstractions": "7.0.0", + "Microsoft.EntityFrameworkCore": "7.0.10", + "Microsoft.EntityFrameworkCore.Abstractions": "7.0.10", "Scrutor": "4.2.0" }, "runtime": { @@ -1337,26 +1337,26 @@ "path": "microsoft.csharp/4.0.1", "hashPath": "microsoft.csharp.4.0.1.nupkg.sha512" }, - "Microsoft.EntityFrameworkCore/7.0.0": { + "Microsoft.EntityFrameworkCore/7.0.10": { "type": "package", "serviceable": true, - "sha512": "sha512-9W+IfmAzMrp2ZpKZLhgTlWljSBM9Erldis1us61DAGi+L7Q6vilTbe1G2zDxtYO8F2H0I0Qnupdx5Cp4s2xoZw==", - "path": "microsoft.entityframeworkcore/7.0.0", - "hashPath": "microsoft.entityframeworkcore.7.0.0.nupkg.sha512" + "sha512": "sha512-24NbXJqJ/x8u88/agqeb1pLdAF9+9StDLA36+P/3g5xsJPOaB2GxXn7epR8dWpZTgHsNZ7cvBMxBgfFmF+xZlg==", + "path": "microsoft.entityframeworkcore/7.0.10", + "hashPath": "microsoft.entityframeworkcore.7.0.10.nupkg.sha512" }, - "Microsoft.EntityFrameworkCore.Abstractions/7.0.0": { + "Microsoft.EntityFrameworkCore.Abstractions/7.0.10": { "type": "package", "serviceable": true, - "sha512": "sha512-Pfu3Zjj5+d2Gt27oE9dpGiF/VobBB+s5ogrfI9sBsXQE1SG49RqVz5+IyeNnzhyejFrPIQsPDRMchhcojy4Hbw==", - "path": "microsoft.entityframeworkcore.abstractions/7.0.0", - "hashPath": "microsoft.entityframeworkcore.abstractions.7.0.0.nupkg.sha512" + "sha512": "sha512-Z/lDWmGLiT9uNQrp6UXTKZxofSmAKQCiKOz98FDscTbfAGgBXE3DTTqRsPMc8HFIVVSNANSiFRz3JyLg07HN9Q==", + "path": "microsoft.entityframeworkcore.abstractions/7.0.10", + "hashPath": "microsoft.entityframeworkcore.abstractions.7.0.10.nupkg.sha512" }, - "Microsoft.EntityFrameworkCore.Analyzers/7.0.0": { + "Microsoft.EntityFrameworkCore.Analyzers/7.0.10": { "type": "package", "serviceable": true, - "sha512": "sha512-Qkd2H+jLe37o5ku+LjT6qf7kAHY75Yfn2bBDQgqr13DTOLYpEy1Mt93KPFjaZvIu/srEcbfGGMRL7urKm5zN8Q==", - "path": "microsoft.entityframeworkcore.analyzers/7.0.0", - "hashPath": "microsoft.entityframeworkcore.analyzers.7.0.0.nupkg.sha512" + "sha512": "sha512-+8NVNpyJTzW6nNh/7RGfldf+mbeboVcn+X1tD8kMBCEJswuy3RqM/qecEEfOfTcWLliZExPMaHwOwtHO6RMpdA==", + "path": "microsoft.entityframeworkcore.analyzers/7.0.10", + "hashPath": "microsoft.entityframeworkcore.analyzers.7.0.10.nupkg.sha512" }, "Microsoft.Extensions.Caching.Abstractions/7.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 9faa6fe..13558f0 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 fc74674..95b5d56 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 9ee68fe..1d1e42b 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 229bb42..d966c7a 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/Microsoft.EntityFrameworkCore.Abstractions.dll b/GenericRepository.Tests/bin/Debug/net7.0/Microsoft.EntityFrameworkCore.Abstractions.dll index a89f247..8751326 100755 Binary files a/GenericRepository.Tests/bin/Debug/net7.0/Microsoft.EntityFrameworkCore.Abstractions.dll and b/GenericRepository.Tests/bin/Debug/net7.0/Microsoft.EntityFrameworkCore.Abstractions.dll differ diff --git a/GenericRepository.Tests/bin/Debug/net7.0/Microsoft.EntityFrameworkCore.dll b/GenericRepository.Tests/bin/Debug/net7.0/Microsoft.EntityFrameworkCore.dll index 94a49a4..e4b5a97 100755 Binary files a/GenericRepository.Tests/bin/Debug/net7.0/Microsoft.EntityFrameworkCore.dll and b/GenericRepository.Tests/bin/Debug/net7.0/Microsoft.EntityFrameworkCore.dll 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 71a97ba..601418b 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 ddc5bc6..e1cd0c1 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 @@ -fbaa12cf52dedb3aecaaf600ca4ab14ee0c07b5b +3dbd4bf0230f3a5df2440d4cbe8dfda86a0b65b5 diff --git a/GenericRepository.Tests/obj/Debug/net7.0/GenericRepository.Tests.dll b/GenericRepository.Tests/obj/Debug/net7.0/GenericRepository.Tests.dll index 9faa6fe..13558f0 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 fc74674..95b5d56 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 dc58c93..d10eb7e 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 dc58c93..d10eb7e 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/Abstractions/BaseRepository.cs b/GenericRepository/Abstractions/BaseRepository.cs index a04ed27..e72ad65 100644 --- a/GenericRepository/Abstractions/BaseRepository.cs +++ b/GenericRepository/Abstractions/BaseRepository.cs @@ -1,13 +1,13 @@ using GenericRepository.Abstractions.Interfaces.UnitOfWork; +using Microsoft.EntityFrameworkCore; namespace GenericRepository.Abstractions; public abstract class BaseRepository { - private readonly IUnitOfwork _unitOfwork; - - public BaseRepository(IUnitOfwork unitOfwork) + private readonly IUnitOfWork _unitOfWork; + protected BaseRepository(IUnitOfWork unitOfWork) { - _unitOfwork = unitOfwork; + _unitOfWork = unitOfWork; } } \ No newline at end of file diff --git a/GenericRepository/Abstractions/Interfaces/GenericRepository/Command/IRepository.Async.cs b/GenericRepository/Abstractions/Interfaces/GenericRepository/Command/IRepository.Async.cs index 0f658d0..9f040db 100644 --- a/GenericRepository/Abstractions/Interfaces/GenericRepository/Command/IRepository.Async.cs +++ b/GenericRepository/Abstractions/Interfaces/GenericRepository/Command/IRepository.Async.cs @@ -6,9 +6,7 @@ namespace GenericRepository.Abstractions.Interfaces.GenericRepository.Command; public partial interface IRepository where T : BaseEntity { - Task BeginTransactionAsync(CancellationToken cancellationToken = default); - Task RollbackTransactionAsync(); - Task CommitTransactionAsync(); + Task AddAsync(T model); Task AddRangeAsync(IEnumerable models); Task UpdateAsync(T model); diff --git a/GenericRepository/Abstractions/Interfaces/GenericRepository/Query/IQueryGenericRepository.Async.cs b/GenericRepository/Abstractions/Interfaces/GenericRepository/Query/IQueryGenericRepository.Async.cs index d5d52a7..903578b 100644 --- a/GenericRepository/Abstractions/Interfaces/GenericRepository/Query/IQueryGenericRepository.Async.cs +++ b/GenericRepository/Abstractions/Interfaces/GenericRepository/Query/IQueryGenericRepository.Async.cs @@ -28,7 +28,7 @@ Task GetSingleAsync(Expression>? query, /// isDistinct /// On or Off tracking /// - Task> GetListAsync(Expression>? query, + Task> GetListAsync(Expression>? query, Func selector, Func? orderBy = default, OrderType? orderType = OrderType.Asc, @@ -38,7 +38,7 @@ Task> GetListAsync(Expression>? query, bool? distinct = null, bool asTracking = false); - Task> GetListAsync(Expression>? query = default, + Task> GetListAsync(Expression>? query = default, Func? orderBy = default, OrderType? orderType = OrderType.Asc, List? includes = default, @@ -47,7 +47,7 @@ Task> GetListAsync(Expression>? query = default, bool? distinct = default, bool asTracking = false); - Task> GetAllAsync(Func selector, + Task> GetAllAsync(Func selector, Func? orderBy = default, OrderType? orderType = OrderType.Asc, List? includes = default, @@ -56,7 +56,7 @@ Task> GetAllAsync(Func selector, bool? distinct = false, bool asTracking = false); - Task> GetAllAsync(Func? orderBy = default, + Task> GetAllAsync(Func? orderBy = default, OrderType? orderType = OrderType.Asc, List? includes = default, int? skip = 0, diff --git a/GenericRepository/Abstractions/Interfaces/GenericRepository/Query/IQueryGenericRepository.Sync.cs b/GenericRepository/Abstractions/Interfaces/GenericRepository/Query/IQueryGenericRepository.Sync.cs index 13d6d66..c16b396 100644 --- a/GenericRepository/Abstractions/Interfaces/GenericRepository/Query/IQueryGenericRepository.Sync.cs +++ b/GenericRepository/Abstractions/Interfaces/GenericRepository/Query/IQueryGenericRepository.Sync.cs @@ -17,7 +17,7 @@ T GetSingle(Expression>? query, List? includes = null, bool asTracking = false); - List GetList(Expression>? query, + IReadOnlyList GetList(Expression>? query, Func selector, Func? orderBy = default, OrderType? orderType = OrderType.Asc, @@ -28,7 +28,7 @@ List GetList(Expression>? query, bool asTracking = false); - List GetList(Expression>? query = default, + IReadOnlyList GetList(Expression>? query = default, Func? orderBy = default, OrderType? orderType = OrderType.Asc, List? includes = default, @@ -37,7 +37,7 @@ List GetList(Expression>? query = default, bool? distinct = false, bool asTracking = false); - List GetAll(Func selector, + IReadOnlyList GetAll(Func selector, Func? orderBy = default, OrderType? orderType = OrderType.Asc, List? includes = default, @@ -46,7 +46,7 @@ List GetAll(Func selector, bool? distinct = null, bool asTracking = false); - List GetAll(Func? orderBy = default, + IReadOnlyList GetAll(Func? orderBy = default, OrderType? orderType = OrderType.Asc, List? includes = null, int? skip = 0, diff --git a/GenericRepository/Abstractions/Interfaces/UnitOfWork/IUnitOfWork.cs b/GenericRepository/Abstractions/Interfaces/UnitOfWork/IUnitOfWork.cs new file mode 100644 index 0000000..b267772 --- /dev/null +++ b/GenericRepository/Abstractions/Interfaces/UnitOfWork/IUnitOfWork.cs @@ -0,0 +1,15 @@ +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Storage; + +namespace GenericRepository.Abstractions.Interfaces.UnitOfWork; + +public interface IUnitOfWork +{ + Task SaveAsync(); + int Save(); + Task DisposeAsync(); + void Dispose(); + Task BeginTransactionAsync(CancellationToken cancellationToken = default); + Task RollbackTransactionAsync(); + Task CommitTransactionAsync(); +} \ No newline at end of file diff --git a/GenericRepository/Abstractions/Interfaces/UnitOfWork/IUnitOfwork.cs b/GenericRepository/Abstractions/Interfaces/UnitOfWork/IUnitOfwork.cs deleted file mode 100644 index b2e4975..0000000 --- a/GenericRepository/Abstractions/Interfaces/UnitOfWork/IUnitOfwork.cs +++ /dev/null @@ -1,9 +0,0 @@ -namespace GenericRepository.Abstractions.Interfaces.UnitOfWork; - -public interface IUnitOfwork -{ - Task SaveAsync(); - int Save(); - Task DisposeAsync(); - void Dispose(); -} \ No newline at end of file diff --git a/GenericRepository/Data/QueryContext.cs b/GenericRepository/Data/QueryContext.cs index 2782b94..0532e6e 100644 --- a/GenericRepository/Data/QueryContext.cs +++ b/GenericRepository/Data/QueryContext.cs @@ -6,6 +6,7 @@ public class QueryContext : DbContext { public QueryContext(DbContextOptions options) : base(options) { - + } + } \ No newline at end of file diff --git a/GenericRepository/Entities/BaseEntity.cs b/GenericRepository/Entities/BaseEntity.cs index d295feb..6366d8b 100644 --- a/GenericRepository/Entities/BaseEntity.cs +++ b/GenericRepository/Entities/BaseEntity.cs @@ -5,7 +5,6 @@ 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() diff --git a/GenericRepository/Configuration/GenericRepositoryConfigurator.cs b/GenericRepository/Ioc/GenericRepositoryConfigurator.cs similarity index 95% rename from GenericRepository/Configuration/GenericRepositoryConfigurator.cs rename to GenericRepository/Ioc/GenericRepositoryConfigurator.cs index 3b2b63b..1fa180c 100644 --- a/GenericRepository/Configuration/GenericRepositoryConfigurator.cs +++ b/GenericRepository/Ioc/GenericRepositoryConfigurator.cs @@ -15,7 +15,7 @@ public static class GenericRepositoryConfigurator public static void InjectServices(IServiceCollection services) { services.AddMemoryCache(); - services.AddTransient(); + services.AddTransient(); services.AddScoped(); services.AddScoped(); services.AddTransient(typeof(IRepository<>), typeof(Repository<>)); diff --git a/GenericRepository/Repository/GenericRepository/Command/Repository.Async.cs b/GenericRepository/Repository/GenericRepository/Command/Repository.Async.cs index 1c9ce5f..228a08d 100644 --- a/GenericRepository/Repository/GenericRepository/Command/Repository.Async.cs +++ b/GenericRepository/Repository/GenericRepository/Command/Repository.Async.cs @@ -17,16 +17,7 @@ public Repository(CommandContext context) this._context = context; _model = _context.Set(); } - - public async Task BeginTransactionAsync(CancellationToken cancellationToken = default) - { - IDbContextTransaction dbContextTransaction = await _context.Database.BeginTransactionAsync(cancellationToken); - return dbContextTransaction; - } - public async Task RollbackTransactionAsync() - =>await _context.Database.RollbackTransactionAsync(); - public async Task CommitTransactionAsync() - => await _context.Database.CommitTransactionAsync(); + public async Task AddAsync(T model) => await _model.AddAsync(model); public async Task AddRangeAsync(IEnumerable models) diff --git a/GenericRepository/Repository/GenericRepository/Query/CacheRepository.cs b/GenericRepository/Repository/GenericRepository/Query/CacheRepository.cs index 9cc1064..743cfe4 100644 --- a/GenericRepository/Repository/GenericRepository/Query/CacheRepository.cs +++ b/GenericRepository/Repository/GenericRepository/Query/CacheRepository.cs @@ -31,7 +31,7 @@ public async Task FindAsync(long id) }); } - public async Task> GetAllAsync(Func selector, + public async Task> GetAllAsync(Func selector, Func? orderBy = null, OrderType? orderType = null, List? includes = null, @@ -41,7 +41,7 @@ public async Task> GetAllAsync(Func selector, bool asTracking = false) { string key = GenerateCacheKey(query: null, selector, orderBy, orderType, includes, skip, take, distinct); - return await _memoryCache.GetOrCreateAsync>(key, async (entry) => + return await _memoryCache.GetOrCreateAsync>(key, async (entry) => { entry.AbsoluteExpirationRelativeToNow = TimeSpan.FromMinutes(1); return await _repository.GetAllAsync(selector, orderBy, orderType, includes, skip, take, distinct, @@ -49,7 +49,7 @@ public async Task> GetAllAsync(Func selector, }); } - public async Task> GetAllAsync(Func? orderBy = null, + public async Task> GetAllAsync(Func? orderBy = null, OrderType? orderType = null, List? includes = null, int? skip = 0, @@ -58,7 +58,7 @@ public async Task> GetAllAsync(Func? orderBy = null, bool asTracking = false) { string key = GenerateCacheKey(query: null, selector: null, orderBy, orderType, includes, skip, take, distinct); - return await _memoryCache.GetOrCreateAsync>(key, async (entry) => + return await _memoryCache.GetOrCreateAsync>(key, async (entry) => { entry.AbsoluteExpirationRelativeToNow = TimeSpan.FromMinutes(1); return await _repository.GetAllAsync(orderBy, orderType, includes, skip, take, distinct, asTracking); @@ -69,7 +69,7 @@ public async Task GetCountAsync(Expression>? query = default => await _repository.GetCountAsync(query); - public async Task> GetListAsync(Expression>? query, + public async Task> GetListAsync(Expression>? query, Func selector, Func? orderBy = null, OrderType? orderType = null, @@ -80,7 +80,7 @@ public async Task> GetListAsync(Expression> bool asTracking = false) { string key = GenerateCacheKey(query, selector, orderBy, orderType, includes, skip, take, distinct); - return await _memoryCache.GetOrCreateAsync>(key, async (entry) => + return await _memoryCache.GetOrCreateAsync>(key, async (entry) => { entry.AbsoluteExpirationRelativeToNow = TimeSpan.FromMinutes(1); return await _repository.GetListAsync(query, selector, orderBy, orderType, includes, skip, take, @@ -88,7 +88,7 @@ public async Task> GetListAsync(Expression> }); } - public async Task> GetListAsync(Expression>? query = null, + public async Task> GetListAsync(Expression>? query = null, Func? orderBy = null, OrderType? orderType = null, List? includes = null, @@ -98,7 +98,7 @@ public async Task> GetListAsync(Expression>? query = null, bool asTracking = false) { string key = GenerateCacheKey(query, selector: null, orderBy, orderType, includes, skip, take, distinct); - return await _memoryCache.GetOrCreateAsync>(key, async (entry) => + return await _memoryCache.GetOrCreateAsync>(key, async (entry) => { entry.AbsoluteExpirationRelativeToNow = TimeSpan.FromMinutes(1); return await _repository.GetListAsync(query, orderBy, orderType, includes, skip, take, distinct, @@ -147,7 +147,7 @@ public T Find(long id) }); } - public List GetAll(Func selector, + public IReadOnlyList GetAll(Func selector, Func? orderBy = null, OrderType? orderType = null, List? includes = null, @@ -156,7 +156,7 @@ public List GetAll(Func selector, bool asTracking = false) { string key = GenerateCacheKey(query: null, selector, orderBy, orderType, includes, skip, take, distinct); - return _memoryCache.GetOrCreate>(key, (entry) => + return _memoryCache.GetOrCreate>(key, (entry) => { entry.AbsoluteExpirationRelativeToNow = TimeSpan.FromMinutes(1); return _repository.GetAll(selector, orderBy, orderType, includes, skip, take, distinct, @@ -164,7 +164,7 @@ public List GetAll(Func selector, }); } - public List GetAll(Func? orderBy = null, + public IReadOnlyList GetAll(Func? orderBy = null, OrderType? orderType = null, List? includes = null, int? skip = 0, int? take = null, @@ -172,14 +172,14 @@ public List GetAll(Func? orderBy = null, bool asTracking = false) { string key = GenerateCacheKey(query: null, selector: null, orderBy, orderType, includes, skip, take, distinct); - return _memoryCache.GetOrCreate>(key, (entry) => + return _memoryCache.GetOrCreate>(key, (entry) => { entry.AbsoluteExpirationRelativeToNow = TimeSpan.FromMinutes(1); return _repository.GetAll(orderBy, orderType, includes, skip, take, distinct, asTracking); }); } - public List GetList(Expression>? query, + public IReadOnlyList GetList(Expression>? query, Func selector, Func? orderBy = null, OrderType? orderType = null, @@ -190,7 +190,7 @@ public List GetList(Expression>? query, bool asTracking = false) { string key = GenerateCacheKey(query, selector, orderBy, orderType, includes, skip, take, distinct); - return _memoryCache.GetOrCreate>(key, (entry) => + return _memoryCache.GetOrCreate>(key, (entry) => { entry.AbsoluteExpirationRelativeToNow = TimeSpan.FromMinutes(1); return _repository.GetList(query, selector, orderBy, orderType, includes, skip, take, distinct, @@ -198,7 +198,7 @@ public List GetList(Expression>? query, }); } - public List GetList(Expression>? query = null, + public IReadOnlyList GetList(Expression>? query = null, Func? orderBy = null, OrderType? orderType = null, List? includes = null, @@ -207,7 +207,7 @@ public List GetList(Expression>? query = null, bool asTracking = false) { string key = GenerateCacheKey(query, selector: null, orderBy, orderType, includes, skip, take, distinct); - return _memoryCache.GetOrCreate>(key, (entry) => + return _memoryCache.GetOrCreate>(key, (entry) => { entry.AbsoluteExpirationRelativeToNow = TimeSpan.FromMinutes(1); return _repository.GetList(query, orderBy, orderType, includes, skip, take, distinct, asTracking); diff --git a/GenericRepository/Repository/GenericRepository/Query/QueryGenericRepository.Async.cs b/GenericRepository/Repository/GenericRepository/Query/QueryGenericRepository.Async.cs index 5e7222c..9a90b6f 100644 --- a/GenericRepository/Repository/GenericRepository/Query/QueryGenericRepository.Async.cs +++ b/GenericRepository/Repository/GenericRepository/Query/QueryGenericRepository.Async.cs @@ -29,7 +29,7 @@ public async Task GetCountAsync(Expression> query = null) /// skip /// take /// - public async Task> GetListAsync(Expression>? query, + public async Task> GetListAsync(Expression>? query, Func selector, Func? orderBy = null, OrderType? orderType = null, @@ -39,7 +39,7 @@ public async Task> GetListAsync(Expression> bool? distinct = null, bool asTracking = false) { - List result; + IReadOnlyList result; IQueryable models = _model.AsQueryable(); if (!asTracking) @@ -68,7 +68,9 @@ public async Task> GetListAsync(Expression> if (distinct is not null) models.Distinct(); - result = models.Select(selector).ToList(); + result = models.Select(selector) + .ToList() + .AsReadOnly(); return result; } @@ -84,7 +86,7 @@ public async Task> GetListAsync(Expression> /// /// /// - public async Task> GetListAsync(Expression>? query = null, + public async Task> GetListAsync(Expression>? query = null, Func? orderBy = null, OrderType? orderType = null, List? includes = null, @@ -122,10 +124,11 @@ public async Task> GetListAsync(Expression>? query = null, if (distinct is not null) models.Distinct(); - return models.ToList(); + return models.ToList() + .AsReadOnly(); } - public async Task> GetAllAsync(Func selector, + public async Task> GetAllAsync(Func selector, Func? orderBy = null, OrderType? orderType = null, List? includes = null, @@ -134,7 +137,7 @@ public async Task> GetAllAsync(Func selector, bool? distinct = null, bool asTracking = false) { - List result; + IReadOnlyList result; IQueryable models = _model.AsQueryable(); if (!asTracking) @@ -161,11 +164,13 @@ public async Task> GetAllAsync(Func selector, if (distinct is not null) models.Distinct(); - result = models.Select(selector).ToList(); + result = models.Select(selector) + .ToList() + .AsReadOnly(); return result; } - public async Task> GetAllAsync( + public async Task> GetAllAsync( Func? orderBy = null, OrderType? orderType = null, List? includes = null, diff --git a/GenericRepository/Repository/GenericRepository/Query/QueryGenericRepository.Sync.cs b/GenericRepository/Repository/GenericRepository/Query/QueryGenericRepository.Sync.cs index 3165f48..dd0016d 100644 --- a/GenericRepository/Repository/GenericRepository/Query/QueryGenericRepository.Sync.cs +++ b/GenericRepository/Repository/GenericRepository/Query/QueryGenericRepository.Sync.cs @@ -13,7 +13,7 @@ public sealed partial class QueryGenericRepository : IQueryGenericRepository< public long GetCount(Expression>? query = null) => _model.Count(query); - public List GetList(Expression>? query, + public IReadOnlyList GetList(Expression>? query, Func selector, Func? orderBy = null, OrderType? orderType = null, @@ -23,7 +23,7 @@ public List GetList(Expression>? query, bool? distinct = null, bool asTracking = false) { - List result; + IReadOnlyList result; IQueryable models = _model.AsQueryable(); if (!asTracking) @@ -53,11 +53,13 @@ public List GetList(Expression>? query, if (distinct is not null) models = models.Distinct(); - result = models.Select(selector).ToList(); + result = models.Select(selector) + .ToList() + .AsReadOnly(); return result; } - public List GetList(Expression>? query = null, + public IReadOnlyList GetList(Expression>? query = null, Func? orderBy = null, OrderType? orderType = null, List? includes = null, @@ -94,11 +96,12 @@ public List GetList(Expression>? query = null, if (distinct != null) models = models.Distinct(); - return models.ToList(); + return models.ToList() + .AsReadOnly(); } - public List GetAll(Func selector, + public IReadOnlyList GetAll(Func selector, Func? orderBy = null, OrderType? orderType = null, List? includes = null, @@ -139,7 +142,7 @@ public List GetAll(Func selector, } - public List GetAll(Func? orderBy = null, + public IReadOnlyList GetAll(Func? orderBy = null, OrderType? orderType = null, List? includes = null, int? skip = 0, diff --git a/GenericRepository/Repository/UnitOfWork/UnitOfWork.cs b/GenericRepository/Repository/UnitOfWork/UnitOfWork.cs index b27e651..39bbf01 100644 --- a/GenericRepository/Repository/UnitOfWork/UnitOfWork.cs +++ b/GenericRepository/Repository/UnitOfWork/UnitOfWork.cs @@ -1,12 +1,12 @@ using GenericRepository.Abstractions.Interfaces.UnitOfWork; using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Storage; namespace GenericRepository.Repository.UnitOfWork; -public class UnitOfWork : IUnitOfwork +public class UnitOfWork : IUnitOfWork { private readonly DbContext _context; - public UnitOfWork(DbContext context) { _context = context; @@ -17,13 +17,26 @@ public async Task SaveAsync() int result = await _context.SaveChangesAsync(); return result; } + public int Save() => _context.SaveChanges(); + public async Task DisposeAsync() => await _context.DisposeAsync(); + public void Dispose() => _context.Dispose(); - - - + + public async Task BeginTransactionAsync(CancellationToken cancellationToken = default) + { + IDbContextTransaction dbContextTransaction = await _context.Database.BeginTransactionAsync(cancellationToken); + return dbContextTransaction; + } + + public async Task RollbackTransactionAsync() + =>await _context.Database.RollbackTransactionAsync(); + + public async Task CommitTransactionAsync() + => await _context.Database.CommitTransactionAsync(); + } \ No newline at end of file diff --git a/GenericRepository/bin/Debug/net7.0/GenericRepository.deps.json b/GenericRepository/bin/Debug/net7.0/GenericRepository.deps.json new file mode 100644 index 0000000..b391806 --- /dev/null +++ b/GenericRepository/bin/Debug/net7.0/GenericRepository.deps.json @@ -0,0 +1,306 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v7.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v7.0": { + "GenericRepository/1.0.0": { + "dependencies": { + "Microsoft.EntityFrameworkCore": "7.0.10", + "Microsoft.EntityFrameworkCore.Abstractions": "7.0.10", + "Scrutor": "4.2.0" + }, + "runtime": { + "GenericRepository.dll": {} + } + }, + "Microsoft.EntityFrameworkCore/7.0.10": { + "dependencies": { + "Microsoft.EntityFrameworkCore.Abstractions": "7.0.10", + "Microsoft.EntityFrameworkCore.Analyzers": "7.0.10", + "Microsoft.Extensions.Caching.Memory": "7.0.0", + "Microsoft.Extensions.DependencyInjection": "7.0.0", + "Microsoft.Extensions.Logging": "7.0.0" + }, + "runtime": { + "lib/net6.0/Microsoft.EntityFrameworkCore.dll": { + "assemblyVersion": "7.0.10.0", + "fileVersion": "7.0.1023.36204" + } + } + }, + "Microsoft.EntityFrameworkCore.Abstractions/7.0.10": { + "runtime": { + "lib/net6.0/Microsoft.EntityFrameworkCore.Abstractions.dll": { + "assemblyVersion": "7.0.10.0", + "fileVersion": "7.0.1023.36204" + } + } + }, + "Microsoft.EntityFrameworkCore.Analyzers/7.0.10": {}, + "Microsoft.Extensions.Caching.Abstractions/7.0.0": { + "dependencies": { + "Microsoft.Extensions.Primitives": "7.0.0" + }, + "runtime": { + "lib/net7.0/Microsoft.Extensions.Caching.Abstractions.dll": { + "assemblyVersion": "7.0.0.0", + "fileVersion": "7.0.22.51805" + } + } + }, + "Microsoft.Extensions.Caching.Memory/7.0.0": { + "dependencies": { + "Microsoft.Extensions.Caching.Abstractions": "7.0.0", + "Microsoft.Extensions.DependencyInjection.Abstractions": "7.0.0", + "Microsoft.Extensions.Logging.Abstractions": "7.0.0", + "Microsoft.Extensions.Options": "7.0.0", + "Microsoft.Extensions.Primitives": "7.0.0" + }, + "runtime": { + "lib/net7.0/Microsoft.Extensions.Caching.Memory.dll": { + "assemblyVersion": "7.0.0.0", + "fileVersion": "7.0.22.51805" + } + } + }, + "Microsoft.Extensions.DependencyInjection/7.0.0": { + "dependencies": { + "Microsoft.Extensions.DependencyInjection.Abstractions": "7.0.0" + }, + "runtime": { + "lib/net7.0/Microsoft.Extensions.DependencyInjection.dll": { + "assemblyVersion": "7.0.0.0", + "fileVersion": "7.0.22.51805" + } + } + }, + "Microsoft.Extensions.DependencyInjection.Abstractions/7.0.0": { + "runtime": { + "lib/net7.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": { + "assemblyVersion": "7.0.0.0", + "fileVersion": "7.0.22.51805" + } + } + }, + "Microsoft.Extensions.DependencyModel/6.0.0": { + "dependencies": { + "System.Buffers": "4.5.1", + "System.Memory": "4.5.4", + "System.Runtime.CompilerServices.Unsafe": "6.0.0", + "System.Text.Encodings.Web": "6.0.0", + "System.Text.Json": "6.0.0" + }, + "runtime": { + "lib/netstandard2.0/Microsoft.Extensions.DependencyModel.dll": { + "assemblyVersion": "6.0.0.0", + "fileVersion": "6.0.21.52210" + } + } + }, + "Microsoft.Extensions.Logging/7.0.0": { + "dependencies": { + "Microsoft.Extensions.DependencyInjection": "7.0.0", + "Microsoft.Extensions.DependencyInjection.Abstractions": "7.0.0", + "Microsoft.Extensions.Logging.Abstractions": "7.0.0", + "Microsoft.Extensions.Options": "7.0.0" + }, + "runtime": { + "lib/net7.0/Microsoft.Extensions.Logging.dll": { + "assemblyVersion": "7.0.0.0", + "fileVersion": "7.0.22.51805" + } + } + }, + "Microsoft.Extensions.Logging.Abstractions/7.0.0": { + "runtime": { + "lib/net7.0/Microsoft.Extensions.Logging.Abstractions.dll": { + "assemblyVersion": "7.0.0.0", + "fileVersion": "7.0.22.51805" + } + } + }, + "Microsoft.Extensions.Options/7.0.0": { + "dependencies": { + "Microsoft.Extensions.DependencyInjection.Abstractions": "7.0.0", + "Microsoft.Extensions.Primitives": "7.0.0" + }, + "runtime": { + "lib/net7.0/Microsoft.Extensions.Options.dll": { + "assemblyVersion": "7.0.0.0", + "fileVersion": "7.0.22.51805" + } + } + }, + "Microsoft.Extensions.Primitives/7.0.0": { + "runtime": { + "lib/net7.0/Microsoft.Extensions.Primitives.dll": { + "assemblyVersion": "7.0.0.0", + "fileVersion": "7.0.22.51805" + } + } + }, + "Scrutor/4.2.0": { + "dependencies": { + "Microsoft.Extensions.DependencyInjection.Abstractions": "7.0.0", + "Microsoft.Extensions.DependencyModel": "6.0.0" + }, + "runtime": { + "lib/net6.0/Scrutor.dll": { + "assemblyVersion": "4.0.0.0", + "fileVersion": "4.0.0.0" + } + } + }, + "System.Buffers/4.5.1": {}, + "System.Memory/4.5.4": {}, + "System.Runtime.CompilerServices.Unsafe/6.0.0": {}, + "System.Text.Encodings.Web/6.0.0": { + "dependencies": { + "System.Runtime.CompilerServices.Unsafe": "6.0.0" + } + }, + "System.Text.Json/6.0.0": { + "dependencies": { + "System.Runtime.CompilerServices.Unsafe": "6.0.0", + "System.Text.Encodings.Web": "6.0.0" + } + } + } + }, + "libraries": { + "GenericRepository/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + }, + "Microsoft.EntityFrameworkCore/7.0.10": { + "type": "package", + "serviceable": true, + "sha512": "sha512-24NbXJqJ/x8u88/agqeb1pLdAF9+9StDLA36+P/3g5xsJPOaB2GxXn7epR8dWpZTgHsNZ7cvBMxBgfFmF+xZlg==", + "path": "microsoft.entityframeworkcore/7.0.10", + "hashPath": "microsoft.entityframeworkcore.7.0.10.nupkg.sha512" + }, + "Microsoft.EntityFrameworkCore.Abstractions/7.0.10": { + "type": "package", + "serviceable": true, + "sha512": "sha512-Z/lDWmGLiT9uNQrp6UXTKZxofSmAKQCiKOz98FDscTbfAGgBXE3DTTqRsPMc8HFIVVSNANSiFRz3JyLg07HN9Q==", + "path": "microsoft.entityframeworkcore.abstractions/7.0.10", + "hashPath": "microsoft.entityframeworkcore.abstractions.7.0.10.nupkg.sha512" + }, + "Microsoft.EntityFrameworkCore.Analyzers/7.0.10": { + "type": "package", + "serviceable": true, + "sha512": "sha512-+8NVNpyJTzW6nNh/7RGfldf+mbeboVcn+X1tD8kMBCEJswuy3RqM/qecEEfOfTcWLliZExPMaHwOwtHO6RMpdA==", + "path": "microsoft.entityframeworkcore.analyzers/7.0.10", + "hashPath": "microsoft.entityframeworkcore.analyzers.7.0.10.nupkg.sha512" + }, + "Microsoft.Extensions.Caching.Abstractions/7.0.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-IeimUd0TNbhB4ded3AbgBLQv2SnsiVugDyGV1MvspQFVlA07nDC7Zul7kcwH5jWN3JiTcp/ySE83AIJo8yfKjg==", + "path": "microsoft.extensions.caching.abstractions/7.0.0", + "hashPath": "microsoft.extensions.caching.abstractions.7.0.0.nupkg.sha512" + }, + "Microsoft.Extensions.Caching.Memory/7.0.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-xpidBs2KCE2gw1JrD0quHE72kvCaI3xFql5/Peb2GRtUuZX+dYPoK/NTdVMiM67Svym0M0Df9A3xyU0FbMQhHw==", + "path": "microsoft.extensions.caching.memory/7.0.0", + "hashPath": "microsoft.extensions.caching.memory.7.0.0.nupkg.sha512" + }, + "Microsoft.Extensions.DependencyInjection/7.0.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-elNeOmkeX3eDVG6pYVeV82p29hr+UKDaBhrZyWvWLw/EVZSYEkZlQdkp0V39k/Xehs2Qa0mvoCvkVj3eQxNQ1Q==", + "path": "microsoft.extensions.dependencyinjection/7.0.0", + "hashPath": "microsoft.extensions.dependencyinjection.7.0.0.nupkg.sha512" + }, + "Microsoft.Extensions.DependencyInjection.Abstractions/7.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" + }, + "Microsoft.Extensions.DependencyModel/6.0.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-TD5QHg98m3+QhgEV1YVoNMl5KtBw/4rjfxLHO0e/YV9bPUBDKntApP4xdrVtGgCeQZHVfC2EXIGsdpRNrr87Pg==", + "path": "microsoft.extensions.dependencymodel/6.0.0", + "hashPath": "microsoft.extensions.dependencymodel.6.0.0.nupkg.sha512" + }, + "Microsoft.Extensions.Logging/7.0.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-Nw2muoNrOG5U5qa2ZekXwudUn2BJcD41e65zwmDHb1fQegTX66UokLWZkJRpqSSHXDOWZ5V0iqhbxOEky91atA==", + "path": "microsoft.extensions.logging/7.0.0", + "hashPath": "microsoft.extensions.logging.7.0.0.nupkg.sha512" + }, + "Microsoft.Extensions.Logging.Abstractions/7.0.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-kmn78+LPVMOWeITUjIlfxUPDsI0R6G0RkeAMBmQxAJ7vBJn4q2dTva7pWi65ceN5vPGjJ9q/Uae2WKgvfktJAw==", + "path": "microsoft.extensions.logging.abstractions/7.0.0", + "hashPath": "microsoft.extensions.logging.abstractions.7.0.0.nupkg.sha512" + }, + "Microsoft.Extensions.Options/7.0.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-lP1yBnTTU42cKpMozuafbvNtQ7QcBjr/CcK3bYOGEMH55Fjt+iecXjT6chR7vbgCMqy3PG3aNQSZgo/EuY/9qQ==", + "path": "microsoft.extensions.options/7.0.0", + "hashPath": "microsoft.extensions.options.7.0.0.nupkg.sha512" + }, + "Microsoft.Extensions.Primitives/7.0.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-um1KU5kxcRp3CNuI8o/GrZtD4AIOXDk+RLsytjZ9QPok3ttLUelLKpilVPuaFT3TFjOhSibUAso0odbOaCDj3Q==", + "path": "microsoft.extensions.primitives/7.0.0", + "hashPath": "microsoft.extensions.primitives.7.0.0.nupkg.sha512" + }, + "Scrutor/4.2.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-3A4HE/jetg7hySwrAPJY1G0mc6qo1StlF4y5JuIZOp17ULp0STnFWhIjBL+Qa/2z60y+SQ3xz3qMd9cSGS0qMg==", + "path": "scrutor/4.2.0", + "hashPath": "scrutor.4.2.0.nupkg.sha512" + }, + "System.Buffers/4.5.1": { + "type": "package", + "serviceable": true, + "sha512": "sha512-Rw7ijyl1qqRS0YQD/WycNst8hUUMgrMH4FCn1nNm27M4VxchZ1js3fVjQaANHO5f3sN4isvP4a+Met9Y4YomAg==", + "path": "system.buffers/4.5.1", + "hashPath": "system.buffers.4.5.1.nupkg.sha512" + }, + "System.Memory/4.5.4": { + "type": "package", + "serviceable": true, + "sha512": "sha512-1MbJTHS1lZ4bS4FmsJjnuGJOu88ZzTT2rLvrhW7Ygic+pC0NWA+3hgAen0HRdsocuQXCkUTdFn9yHJJhsijDXw==", + "path": "system.memory/4.5.4", + "hashPath": "system.memory.4.5.4.nupkg.sha512" + }, + "System.Runtime.CompilerServices.Unsafe/6.0.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==", + "path": "system.runtime.compilerservices.unsafe/6.0.0", + "hashPath": "system.runtime.compilerservices.unsafe.6.0.0.nupkg.sha512" + }, + "System.Text.Encodings.Web/6.0.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-Vg8eB5Tawm1IFqj4TVK1czJX89rhFxJo9ELqc/Eiq0eXy13RK00eubyU6TJE6y+GQXjyV5gSfiewDUZjQgSE0w==", + "path": "system.text.encodings.web/6.0.0", + "hashPath": "system.text.encodings.web.6.0.0.nupkg.sha512" + }, + "System.Text.Json/6.0.0": { + "type": "package", + "serviceable": true, + "sha512": "sha512-zaJsHfESQvJ11vbXnNlkrR46IaMULk/gHxYsJphzSF+07kTjPHv+Oc14w6QEOfo3Q4hqLJgStUaYB9DBl0TmWg==", + "path": "system.text.json/6.0.0", + "hashPath": "system.text.json.6.0.0.nupkg.sha512" + } + } +} \ No newline at end of file diff --git a/GenericRepository/bin/Debug/net7.0/GenericRepository.dll b/GenericRepository/bin/Debug/net7.0/GenericRepository.dll new file mode 100644 index 0000000..1d1e42b Binary files /dev/null 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 new file mode 100644 index 0000000..d966c7a Binary files /dev/null and b/GenericRepository/bin/Debug/net7.0/GenericRepository.pdb differ diff --git a/GenericRepository/obj/Debug/net7.0/GenericRepository.csproj.CoreCompileInputs.cache b/GenericRepository/obj/Debug/net7.0/GenericRepository.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..fe4353b --- /dev/null +++ b/GenericRepository/obj/Debug/net7.0/GenericRepository.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +6a3b68e18611e5982344682ec0aac97e528bf3aa diff --git a/GenericRepository/obj/Debug/net7.0/GenericRepository.csproj.FileListAbsolute.txt b/GenericRepository/obj/Debug/net7.0/GenericRepository.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..977f1fa --- /dev/null +++ b/GenericRepository/obj/Debug/net7.0/GenericRepository.csproj.FileListAbsolute.txt @@ -0,0 +1,12 @@ +/Users/macbook/Projects/Generic Repository/GenericRepository/bin/Debug/net7.0/GenericRepository.deps.json +/Users/macbook/Projects/Generic Repository/GenericRepository/bin/Debug/net7.0/GenericRepository.dll +/Users/macbook/Projects/Generic Repository/GenericRepository/bin/Debug/net7.0/GenericRepository.pdb +/Users/macbook/Projects/Generic Repository/GenericRepository/obj/Debug/net7.0/GenericRepository.csproj.AssemblyReference.cache +/Users/macbook/Projects/Generic Repository/GenericRepository/obj/Debug/net7.0/GenericRepository.GeneratedMSBuildEditorConfig.editorconfig +/Users/macbook/Projects/Generic Repository/GenericRepository/obj/Debug/net7.0/GenericRepository.AssemblyInfoInputs.cache +/Users/macbook/Projects/Generic Repository/GenericRepository/obj/Debug/net7.0/GenericRepository.AssemblyInfo.cs +/Users/macbook/Projects/Generic Repository/GenericRepository/obj/Debug/net7.0/GenericRepository.csproj.CoreCompileInputs.cache +/Users/macbook/Projects/Generic Repository/GenericRepository/obj/Debug/net7.0/GenericRepository.dll +/Users/macbook/Projects/Generic Repository/GenericRepository/obj/Debug/net7.0/refint/GenericRepository.dll +/Users/macbook/Projects/Generic Repository/GenericRepository/obj/Debug/net7.0/GenericRepository.pdb +/Users/macbook/Projects/Generic Repository/GenericRepository/obj/Debug/net7.0/ref/GenericRepository.dll diff --git a/GenericRepository/obj/Debug/net7.0/GenericRepository.dll b/GenericRepository/obj/Debug/net7.0/GenericRepository.dll new file mode 100644 index 0000000..1d1e42b Binary files /dev/null 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 new file mode 100644 index 0000000..d966c7a Binary files /dev/null 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 new file mode 100644 index 0000000..4c0550d Binary files /dev/null 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 new file mode 100644 index 0000000..4c0550d Binary files /dev/null and b/GenericRepository/obj/Debug/net7.0/refint/GenericRepository.dll differ