Closed Grauenwolf closed 2 years ago
This won't work. We can't put generics on a trait because the UseTrait
attribute doesn't accept generic type arguments. For example, we can't write,
[UseTrait(typeof(MyTrait<TCommand, TParameter>))]
class MyCommandBuilder<TCommand, TParameter>
The implantation for
ISingleRowDbCommandBuilder
andIMultipleRowDbCommandBuilder
are exactly the same for each class that uses them. So they are good candidates for being converted into a trait.