Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
Medic
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hasan.bahjat
Medic
Commits
877b291d
Commit
877b291d
authored
May 21, 2024
by
hasan khaddour
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update IGeneric Repository and IUnitofWork
parent
670ca59a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
IGenericRepository.cs
ApplicationCore/Interfaces/IGenericRepository.cs
+9
-1
IUnitOfWork.cs
ApplicationCore/Interfaces/IUnitOfWork.cs
+5
-1
No files found.
ApplicationCore/Interfaces/IGenericRepository.cs
View file @
877b291d
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Linq
;
using
System.Linq.Expressions
;
using
System.Text
;
using
System.Text
;
using
System.Threading.Tasks
;
using
System.Threading.Tasks
;
namespace
ApplicationCore.Interfaces
namespace
ApplicationCore.Interfaces
{
{
public
interface
IGenericRepository
public
interface
IGenericRepository
<
T
>
where
T
:
Entities
.
EntityBase
{
{
public
T
Update
(
T
entities
);
public
T
Insert
(
T
entities
);
public
T
GetById
(
int
id
,
params
Expression
<
Func
<
T
,
object
>>[]
includeProperties
);
public
void
Delete
(
int
id
);
public
IEnumerable
<
T
>
GetAll
(
params
Expression
<
Func
<
T
,
object
>>[]
includeProperties
);
}
}
}
}
ApplicationCore/Interfaces/IUnitOfWork.cs
View file @
877b291d
...
@@ -6,7 +6,11 @@ using System.Threading.Tasks;
...
@@ -6,7 +6,11 @@ using System.Threading.Tasks;
namespace
ApplicationCore.Interfaces
namespace
ApplicationCore.Interfaces
{
{
public
interface
IUnitOfWork
public
interface
IUnitOfWork
<
T
>
where
T
:
Entities
.
EntityBase
{
{
IGenericRepository
<
T
>
Entity
{
get
;
}
void
Save
();
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment