Glass.Mapper
Glass.Mapper copied to clipboard
Replacement for GetItemWithInterfaces in v5
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?
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.