Glass.Mapper icon indicating copy to clipboard operation
Glass.Mapper copied to clipboard

Replacement for GetItemWithInterfaces in v5

Open mjarosch opened this issue 4 years ago • 1 comments

We are looking into upgrading from v4 to v5 of glassmapper. We use the GetItemWithInterfaces method, and it looks like it no longer exists in v5. Is there a replacement for this method? What is the recommended way of upgrading code that uses this method?

mjarosch avatar Jul 13 '20 13:07 mjarosch

This feature was removed because it wasn't feature that was heavily used by most devs.

You can replace this by creating a single interface that inherits all the previous interfaces that you passed to GetItemWithInterfaces. This will also give you better compile time checking.

mikeedwards83 avatar Jul 16 '20 15:07 mikeedwards83