Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
ProjectsStatusManagement
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
ProjectsStatusManagement
Commits
624fadfb
Commit
624fadfb
authored
Aug 10, 2024
by
hasan khaddour
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix .s
parent
514c14b7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
BaseEntity.cs
PSManagement.SharedKernel/Entities/BaseEntity.cs
+5
-3
IUnitOfWork.cs
PSManagement.SharedKernel/Interfaces/IUnitOfWork.cs
+2
-0
No files found.
PSManagement.SharedKernel/Entities/BaseEntity.cs
View file @
624fadfb
...
...
@@ -9,14 +9,16 @@ namespace PSManagement.SharedKernel.Entities
[
DatabaseGenerated
(
DatabaseGeneratedOption
.
Identity
)]
public
int
Id
{
get
;
set
;
}
public
List
<
IDomainEvent
>
Events
=
new
();
public
List
<
IDomainEvent
>
Events
=
new
();
public
void
AddDomainEvent
(
IDomainEvent
eventItem
)
{
Events
??=
new
List
<
IDomainEvent
>();
Events
.
Add
(
eventItem
);
}
}
public
void
ClearDomainEvents
()
{
Events
.
Clear
();
}
public
void
RemoveDomainEvent
(
IDomainEvent
eventItem
)
{
Events
?.
Remove
(
eventItem
);
...
...
PSManagement.SharedKernel/Interfaces/IUnitOfWork.cs
View file @
624fadfb
...
...
@@ -2,11 +2,13 @@
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading
;
using
System.Threading.Tasks
;
namespace
PSManagement.SharedKernel.Interfaces
{
public
interface
IUnitOfWork
{
Task
SaveChangesAsync
(
CancellationToken
cancellationToken
=
default
);
}
}
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