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

support custom primitive types #3

Merged
merged 1 commit into from
Feb 24, 2015

Conversation

chaowlert
Copy link
Collaborator

Hi,

Thank you for your library. I'm using your library and ran into issue where some classes cannot map. But it should be just copied reference to target.

In my scenario, the class is DbGeography which is standard EF type. Even it is class, but it represents primitive type similar to string.
And every time mapper maps this class, it will throw exception, because this class has no constructor.

The example usage is TypeAdapterConfig.GlobalSettings.PrimitiveType.Add(typeof (DbGeography));

@eswann
Copy link
Collaborator

eswann commented Feb 24, 2015

Nice, thanks for the pulls, will review and pull.

eswann added a commit that referenced this pull request Feb 24, 2015
@eswann eswann merged commit d3a8a50 into MapsterMapper:master Feb 24, 2015
@eswann
Copy link
Collaborator

eswann commented Feb 27, 2015

After merging in the pulls, I was seeing many tests failing....I reapplied the change sets and appears that test are now functional. Would like to see a unit test for this. Thanks!

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.

2 participants