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

Add extension method for adding IMapper to service collection #516

Merged
merged 2 commits into from
Jan 3, 2023

Conversation

stormaref
Copy link
Contributor

I think this method is crucial when a developer is trying to migrate from AutoMapper to Mapster
I created a test method for this feature that ran successfully and placed it in the dependency injection tests

Test Mapper instance provided by ServiceCollection
AddMapster extension method description added to Readme
@andrerav
Copy link
Contributor

andrerav commented Jan 3, 2023

Good stuff @stormaref, thank you!

@andrerav andrerav merged commit 83144cc into MapsterMapper:master Jan 3, 2023
@stormaref
Copy link
Contributor Author

Hi
when you gonna release his version?
should I change the assembly version by myself?

@andrerav
Copy link
Contributor

andrerav commented Feb 2, 2023

Hi @stormaref apologies, I honestly thought I had already released a pre-release package that included this functionality. but obviously I did not :) Will push a pre-release package this evening! Thank you for your patience :)

@stormaref
Copy link
Contributor Author

I'm looking forward for this
Also please take a look at this
#533
I think it would come in handy

@angusgajurel
Copy link

Does this extension work for the Interface in the different project??

@stormaref
Copy link
Contributor Author

Does this extension work for the Interface in the different project??

What exactly do you mean?

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

Successfully merging this pull request may close these issues.

None yet

3 participants