The type cannot be used as a type parameter in the generic type or method
I’m writing my first application using minimal APIs in a .NET 8 application. I’m following a training exercise I found on Microsoft Learn, and I’m using a database I designed. I ran into this error: