feat: expose UtcNow property on BaseDbContext
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -18,6 +18,8 @@ public abstract class BaseDbContext : DbContext
|
||||
_clock = clock;
|
||||
}
|
||||
|
||||
public DateTimeOffset UtcNow => _clock.UtcNow;
|
||||
|
||||
public override int SaveChanges()
|
||||
{
|
||||
ApplyTimestamps();
|
||||
|
||||
Reference in New Issue
Block a user