Hi
I project silk they are using IUnitOfWork in the BaseRepository class. Is that really necessary? The BaseRepository is adjusted to use with EF dbContext so its not an abstraction for the context in order to be able to change context.
If I'm not mistaken they could have used a property "context" of MileageStatsDbContext and gotten the same result.
What's the point of using IUnitOfWork like they do?
I project silk they are using IUnitOfWork in the BaseRepository class. Is that really necessary? The BaseRepository is adjusted to use with EF dbContext so its not an abstraction for the context in order to be able to change context.
If I'm not mistaken they could have used a property "context" of MileageStatsDbContext and gotten the same result.
What's the point of using IUnitOfWork like they do?