ContextQMD
Libraries
Rankings
Queue
About
Log in
Get started
Open menu
Back to Libraries
Mapster
mapster
GitHub
mapster
mapstermapper/mapster
mapstermappermapster
mapstermapper
Homepage
3 versions
43 pages (10.0.7)
4 aliases
3
Versions
43
Pages (10.0.7)
4
Aliases
Pages
Versions
Usage
10.0.7
▼
stable
MapsterMapper Mapster API Documentation
github.com/MapsterMapper/Mapster/blob/10.0.7/do...
184 B
Full page
References
Mapper instance (for dependency injection)
Builder (for complex mapping)
Config
Config scanning
+5 more
github.com/MapsterMapper/Mapster/blob/10.0.7/do...
11.3 KB
Full page
Configuration - Config for nested mapping
github.com/MapsterMapper/Mapster/blob/10.0.7/do...
1.7 KB
Full page
Configuration - Inheritance
Explicit inheritance
Include derived types
github.com/MapsterMapper/Mapster/blob/10.0.7/do...
1.5 KB
Full page
Configuration - Config Instance
`ForType` Configuration Methods
`Adapt` Configuration Methods
`Map` Configuration Methods
Cloning `Config` Instance
+1 more
github.com/MapsterMapper/Mapster/blob/10.0.7/do...
2.0 KB
Full page
Configuration - Location
Keep together with mapping
Using Fork in generic class or method
In separated assemblies
Scan method
+2 more
github.com/MapsterMapper/Mapster/blob/10.0.7/do...
3.8 KB
Full page
Configuration - Overview
Global setting
Rule based settings
Destination type only
Open generics
github.com/MapsterMapper/Mapster/blob/10.0.7/do...
2.8 KB
Full page
Configuration - Validation and Compilation
Checking Destination Member
Validating Mappings
Config Compilation
github.com/MapsterMapper/Mapster/blob/10.0.7/do...
1.8 KB
Full page
Mapping - Basic Usages
Mapping to an existing object
Queryable Extensions
github.com/MapsterMapper/Mapster/blob/10.0.7/do...
962 B
Full page
Mapping - Data Types
Enums
Strings
Collections
Mappable Objects
+5 more
github.com/MapsterMapper/Mapster/blob/10.0.7/do...
5.3 KB
Full page
Mapping - Mappers
Mapper instance
Builder
Code generation
github.com/MapsterMapper/Mapster/blob/10.0.7/do...
1.4 KB
Full page
Mapping - IMapFrom Interface
github.com/MapsterMapper/Mapster/blob/10.0.7/do...
987 B
Full page
Packages - Mapster Async Support
Mapping
github.com/MapsterMapper/Mapster/blob/10.0.7/do...
715 B
Full page
Packages - Dependency Injection Support
Usage
Mapping configuration
Mapping
github.com/MapsterMapper/Mapster/blob/10.0.7/do...
1.3 KB
Full page
Packages - EF 6 and EF Core Support
[EntityFramework Core support](#tab/efcore)
Compatibility
Usage
EF Core `ProjectToType`
github.com/MapsterMapper/Mapster/blob/10.0.7/do...
1.2 KB
Full page
Packages - Expression Debugging
Using internal classes or members
Get mapping script
Specifics for Visual Studio on Mac
Do not worry about performance
github.com/MapsterMapper/Mapster/blob/10.0.7/do...
1.8 KB
Full page
Packages - Fast Expression Compiler Support
github.com/MapsterMapper/Mapster/blob/10.0.7/do...
856 B
Full page
Packages - Immutable Support
Usage
github.com/MapsterMapper/Mapster/blob/10.0.7/do...
700 B
Full page
Packages - Json.net Support
Usage
github.com/MapsterMapper/Mapster/blob/10.0.7/do...
510 B
Full page
Settings - Before and After mapping
After mapping action
Code generation
Single line statement
Multiple statements
+1 more
github.com/MapsterMapper/Mapster/blob/10.0.7/do...
3.0 KB
Full page
Settings - Constructor mapping
Map to constructor
github.com/MapsterMapper/Mapster/blob/10.0.7/do...
2.2 KB
Full page
Settings - Custom conversion logic
Custom mapping data to existing object
Custom actions after mapping
github.com/MapsterMapper/Mapster/blob/10.0.7/do...
1.6 KB
Full page
Settings - Custom Mapping
Mapping with condition
Mapping to non-public members
Deep destination property
Null propagation
+1 more
github.com/MapsterMapper/Mapster/blob/10.0.7/do...
3.2 KB
Full page
Settings - Ignoring members
Rule based ignore with `IgnoreMember`
IgnoreNonMapped
Using the `AdaptIgnore` attribute
Ignore conditionally with `IgnoreIf` Extension Method
+1 more
github.com/MapsterMapper/Mapster/blob/10.0.7/do...
2.1 KB
Full page
Settings - Mapping non-public members
`AdaptMember` attribute
`Map`
`IncludeMember`
Note for non-public member mapping
github.com/MapsterMapper/Mapster/blob/10.0.7/do...
1.4 KB
Full page
Settings - Mapping readonly properties
Using `UseDestinationValue` attribute
Convention based setup using `UseDestinationValue` Extension Method
github.com/MapsterMapper/Mapster/blob/10.0.7/do...
1013 B
Full page
Settings - Naming convention
Ignore cases
Prefix & Replace
Naming Convention with `IDictionary<string, T>`
Rule based Naming using `GetMemberName` Extension Method
github.com/MapsterMapper/Mapster/blob/10.0.7/do...
2.8 KB
Full page
Settings - Rule-based member mapping
Allow only some list of types to be mapped
Allow by types
Allow by Namespaces
Allow internal members
+2 more
github.com/MapsterMapper/Mapster/blob/10.0.7/do...
2.5 KB
Full page
Settings - Setting by attributes
`IgnoreAttribute` usage
`AdaptMember` attribute
Map to different name
Map to non-public members
+3 more
github.com/MapsterMapper/Mapster/blob/10.0.7/do...
2.9 KB
Full page
Settings - Two-ways mapping
Using `Unflattening`
Using `TwoWays`
github.com/MapsterMapper/Mapster/blob/10.0.7/do...
1.5 KB
Full page
1–30 of 43
1
2
Page 1