Commit 624fadfb authored by hasan khaddour's avatar hasan khaddour

fix .s

parent 514c14b7
......@@ -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);
......
......@@ -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);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment