ThomasVague
ThomasVague
Any progress on an example? I'm currently tring to implement your specfication pattern, but I'm stuck on how to rollback if I add multiple entities to the database, without explicitly...
Yeah, I probably shouldn't have said specification pattern. I was referring to your library as a whole, with using the IRepository interface as a way of saving multiple entities. Since...
Great, thanks! I'll definitely look into that.
It seemd to work nice! Here's my code if anyone's interested ``` public class UnitOfWork : IUnitOfWork { private readonly ApplicationDbContext _context; private IDbContextTransaction? _transaction; public UnitOfWork(ApplicationDbContext context) { _context...
@ardalis I actually borrowed the idea from FSH's https://github.com/fullstackhero/dotnet-webapi-boilerplate. So yeah, the interfaces inherits from a ITransientService or IScopedService respectively and gets registered by a function "AddServices". Here's the code:...
My problem is a little different. Instead of getting a generated type like for example JsonPatchDocumentOfWeatherForecast , I get an IEnumerable of Operation as parameter instead.  