-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from Nikoo-Asadnejad/develop
refactor : return readonlyList in queryRepository
- Loading branch information
Showing
36 changed files
with
434 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+0 Bytes
(100%)
GenericRepository.Tests/bin/Debug/net7.0/GenericRepository.Tests.dll
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
GenericRepository.Tests/bin/Debug/net7.0/GenericRepository.Tests.pdb
Binary file not shown.
Binary file modified
BIN
+5.5 KB
(110%)
GenericRepository.Tests/bin/Debug/net7.0/GenericRepository.dll
Binary file not shown.
Binary file modified
BIN
+1.53 KB
(110%)
GenericRepository.Tests/bin/Debug/net7.0/GenericRepository.pdb
Binary file not shown.
Binary file modified
BIN
-8 Bytes
(100%)
GenericRepository.Tests/bin/Debug/net7.0/Microsoft.EntityFrameworkCore.Abstractions.dll
Binary file not shown.
Binary file modified
BIN
+2.51 KB
(100%)
GenericRepository.Tests/bin/Debug/net7.0/Microsoft.EntityFrameworkCore.dll
Binary file not shown.
Binary file modified
BIN
+1.18 KB
(100%)
...cRepository.Tests/obj/Debug/net7.0/GenericRepository.Tests.csproj.AssemblyReference.cache
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
...cRepository.Tests/obj/Debug/net7.0/GenericRepository.Tests.csproj.CoreCompileInputs.cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
fbaa12cf52dedb3aecaaf600ca4ab14ee0c07b5b | ||
3dbd4bf0230f3a5df2440d4cbe8dfda86a0b65b5 |
Binary file modified
BIN
+0 Bytes
(100%)
GenericRepository.Tests/obj/Debug/net7.0/GenericRepository.Tests.dll
Binary file not shown.
Binary file modified
BIN
+4 Bytes
(100%)
GenericRepository.Tests/obj/Debug/net7.0/GenericRepository.Tests.pdb
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
GenericRepository.Tests/obj/Debug/net7.0/ref/GenericRepository.Tests.dll
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
GenericRepository.Tests/obj/Debug/net7.0/refint/GenericRepository.Tests.dll
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
GenericRepository/Abstractions/Interfaces/UnitOfWork/IUnitOfWork.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using Microsoft.EntityFrameworkCore; | ||
using Microsoft.EntityFrameworkCore.Storage; | ||
|
||
namespace GenericRepository.Abstractions.Interfaces.UnitOfWork; | ||
|
||
public interface IUnitOfWork | ||
{ | ||
Task<int> SaveAsync(); | ||
int Save(); | ||
Task DisposeAsync(); | ||
void Dispose(); | ||
Task<IDbContextTransaction> BeginTransactionAsync(CancellationToken cancellationToken = default); | ||
Task RollbackTransactionAsync(); | ||
Task CommitTransactionAsync(); | ||
} |
9 changes: 0 additions & 9 deletions
9
GenericRepository/Abstractions/Interfaces/UnitOfWork/IUnitOfwork.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.