Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
HIAST-Clinics
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
almohanad.hafez
HIAST-Clinics
Commits
38958499
Commit
38958499
authored
Aug 16, 2024
by
Almouhannad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(B) Fix format, Add comments
parent
61e0e6ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
9 deletions
+15
-9
Repositroy.cs
Clinics.Backend/Persistence/Repositories/Base/Repositroy.cs
+0
-9
Specification.cs
....Backend/Persistence/Specifications/Base/Specification.cs
+15
-0
No files found.
Clinics.Backend/Persistence/Repositories/Base/Repositroy.cs
View file @
38958499
...
...
@@ -74,13 +74,4 @@ public class Repositroy<TEntity> : IRepository<TEntity> where TEntity : Entity
#
endregion
}
Clinics.Backend/Persistence/Specifications/Base/Specification.cs
View file @
38958499
...
...
@@ -10,13 +10,27 @@ public abstract class Specification<TEntity> where TEntity : Entity
Criteria
=
criteria
;
}
#
region
Where
criteria
public
Expression
<
Func
<
TEntity
,
bool
>>?
Criteria
{
get
;
}
#
endregion
#
region
Includes
public
List
<
Expression
<
Func
<
TEntity
,
object
>>>
IncludeExpressions
{
get
;
}
=
new
();
#
endregion
#
region
Order
by
public
Expression
<
Func
<
TEntity
,
object
>>?
OrderByExpression
{
get
;
private
set
;
}
public
Expression
<
Func
<
TEntity
,
object
>>?
OrderByDescendingExpression
{
get
;
private
set
;
}
#
endregion
#
region
Add
methods
protected
void
AddInclude
(
Expression
<
Func
<
TEntity
,
object
>>
includeExpression
)
{
IncludeExpressions
.
Add
(
includeExpression
);
...
...
@@ -32,5 +46,6 @@ public abstract class Specification<TEntity> where TEntity : Entity
OrderByDescendingExpression
=
orderByDescendingExpression
;
}
#
endregion
}
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