Skip to content
This repository

Develop #221

Closed
wants to merge 24 commits into from

9 participants

Clay Anderson Jimmy Bogard Pero Dmitry Vorobiov Simon Jefford James Godish Paul Marfleet Dmitry Khryukin Simon Cropp
Clay Anderson

Added ability to use extension methods to source object.
http://stackoverflow.com/questions/9950953/automapper-flattening-an-extension-method

Accomplished by specifying assemblies to search:

    Assembly[] extensionMethodSearch = new Assembly[] { Assembly.Load("Your.Assembly") };
    Mapper.Initialize(config => config.SourceExtensionMethodSearch = extensionMethodSearch);
and others added some commits April 14, 2012
Jimmy Bogard Again no idea 275cd49
Pero GetHashCode() returns a precalculated value in an unchecked context. …
…Have put the calculation back into a checked context.
bddc37b
Jimmy Bogard No idea why i had to commit twice 8986938
Jimmy Bogard Merge branch 'master' into develop a7bb475
Jimmy Bogard Adding an additional nuspec for prerelease 54cdf53
Dmitry Vorobiov Fix for issue #191 Cannot convert enum to nullable int 19f0cb7
Jimmy Bogard Removing SL4 support going forward 3b8cd81
Simon Jefford Fix unreachable code warning 72c3f69
Simon Jefford Fix unused event warnings 6e0174d
Jimmy Bogard Fixing warnings from cmd line build 9f38263
James Godish Not all use cases need the enumeration here. Allowing the enumeration…
… to be deferred here allows for chaining of expression tree projection (i.e. DTO layer -> Entity layer -> SQL layer (via EF)). This is a really cool use case for this, but also means client programmers may get a couple bugs if they previously map to an ienumerable and rely on the automapper's enumeration call.

Closes #184
51730b1
James Godish Fixes case where destination property is an IList. I believe GetInter…
…face("IList", true) returns null for the interface itself.
9fa8de2
Pero GetHashCode() returns a precalculated value in an unchecked context. …
…Have put the calculation back into a checked context.

Closes #188
bfa2285
Jimmy Bogard Fixing bad rebase. dumb line endings... 904fff9
Paul Marfleet Added a global configuration setting that allows mapping-by-construct…
…or to be disabled

Closes #192
114fe92
Jimmy Bogard Projected expressions respect ability to map properties (ignored ones…
… skipped). Closes #163
ab85fac
Jimmy Bogard Corrected value resolver exception message. Closes #199 59934d2
Jimmy Bogard Fixing problem of mapping to existing destination type to check the r…
…untime type. Closes #195
34a5252
Jimmy Bogard Adding a property member context so that resolvers can get at the sou…
…rce value. Closes #183
f94fa69
Dmitry Khryukin TypeInfro has been correcte - _publicAccessors now are writable not r…
…eadable members

TypeInfo has been corrected // GetAllPublic Writabla/Readable Memebers
methods #30

TypeInfo has been fixed - fixing finding writable memebers #30

Test correcting for #30

one more test has been added for #30

closes #211
4314bc0
Simon Cropp copyright f1cb0a1
Fixed issue with mapping og void methods
Fixed a bug where matching void methods were added to the typemap on
CreateMap, thus failing with a .NET type coersion exception. Such
methods should've been filtered out but the ReturnType was checked
against null instead of typeof(void). Added unit tests to support the
fix.

closes #214
a03b6ee
Added overload for AssertConfigurationIsValid to allow single map val…
…idation.

closes #205
43f0515
Added ability to recognize extension methods. e1aaf94
Jimmy Bogard
Owner

Merged!

Jimmy Bogard jbogard closed this September 21, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 24 unique commits by 11 authors.

Apr 14, 2012
Jimmy Bogard Again no idea 275cd49
Pero GetHashCode() returns a precalculated value in an unchecked context. …
…Have put the calculation back into a checked context.
bddc37b
Jimmy Bogard No idea why i had to commit twice 8986938
Apr 15, 2012
Jimmy Bogard Merge branch 'master' into develop a7bb475
Jimmy Bogard Adding an additional nuspec for prerelease 54cdf53
Apr 19, 2012
Dmitry Vorobiov Fix for issue #191 Cannot convert enum to nullable int 19f0cb7
Jimmy Bogard Removing SL4 support going forward 3b8cd81
Apr 27, 2012
Simon Jefford Fix unreachable code warning 72c3f69
Simon Jefford Fix unused event warnings 6e0174d
Apr 28, 2012
Jimmy Bogard Fixing warnings from cmd line build 9f38263
James Godish Not all use cases need the enumeration here. Allowing the enumeration…
… to be deferred here allows for chaining of expression tree projection (i.e. DTO layer -> Entity layer -> SQL layer (via EF)). This is a really cool use case for this, but also means client programmers may get a couple bugs if they previously map to an ienumerable and rely on the automapper's enumeration call.

Closes #184
51730b1
James Godish Fixes case where destination property is an IList. I believe GetInter…
…face("IList", true) returns null for the interface itself.
9fa8de2
Pero GetHashCode() returns a precalculated value in an unchecked context. …
…Have put the calculation back into a checked context.

Closes #188
bfa2285
Jimmy Bogard Fixing bad rebase. dumb line endings... 904fff9
Paul Marfleet Added a global configuration setting that allows mapping-by-construct…
…or to be disabled

Closes #192
114fe92
May 07, 2012
Jimmy Bogard Projected expressions respect ability to map properties (ignored ones…
… skipped). Closes #163
ab85fac
Jimmy Bogard Corrected value resolver exception message. Closes #199 59934d2
Jimmy Bogard Fixing problem of mapping to existing destination type to check the r…
…untime type. Closes #195
34a5252
Jimmy Bogard Adding a property member context so that resolvers can get at the sou…
…rce value. Closes #183
f94fa69
Jun 23, 2012
Dmitry Khryukin TypeInfro has been correcte - _publicAccessors now are writable not r…
…eadable members

TypeInfo has been corrected // GetAllPublic Writabla/Readable Memebers
methods #30

TypeInfo has been fixed - fixing finding writable memebers #30

Test correcting for #30

one more test has been added for #30

closes #211
4314bc0
Simon Cropp copyright f1cb0a1
Fixed issue with mapping og void methods
Fixed a bug where matching void methods were added to the typemap on
CreateMap, thus failing with a .NET type coersion exception. Such
methods should've been filtered out but the ReturnType was checked
against null instead of typeof(void). Added unit tests to support the
fix.

closes #214
a03b6ee
Added overload for AssertConfigurationIsValid to allow single map val…
…idation.

closes #205
43f0515
Jun 26, 2012
Added ability to recognize extension methods. e1aaf94
Something went wrong with that request. Please try again.