Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replacement for GetItemWithInterfaces in v5 #413

Open
mjarosch opened this issue Jul 13, 2020 · 1 comment
Open

Replacement for GetItemWithInterfaces in v5 #413

mjarosch opened this issue Jul 13, 2020 · 1 comment

Comments

@mjarosch
Copy link

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?

@mikeedwards83
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants