ThomasVague

Results 6 comments of 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. ![image](https://user-images.githubusercontent.com/80428474/227163761-34d69c07-49cb-4a60-8645-234ca2703b6e.png) ![image](https://user-images.githubusercontent.com/80428474/227163866-5adc0e45-a686-4414-8de3-29ab0ea374b4.png)