|
1 | | -# <img src="https://github.com/CodeShayk/TurboMapper/blob/master/Images/ninja-icon-16.png" alt="ninja" style="width:30px;"/> TurboMapper v1.0.0 |
| 1 | +# <img src="https://github.com/CodeShayk/TurboMapper/blob/master/Images/ninja-icon-16.png" alt="ninja" style="width:30px;"/> TurboMapper v1.2.0 |
2 | 2 | [](https://badge.fury.io/nu/TurboMapper) [](https://github.com/CodeShayk/TurboMapper/blob/master/LICENSE.md) |
3 | 3 | [](https://github.com/CodeShayk/TurboMapper/releases/latest) |
4 | 4 | [](https://github.com/CodeShayk/TurboMapper/actions/workflows/Master-Build.yml) |
|
10 | 10 | ## Introduction |
11 | 11 | ### What is TurboMapper? |
12 | 12 | `TurboMapper` is a lightweight, high-performance object mapper for .NET that provides both shallow and deep mapping capabilities. It serves as a free alternative to AutoMapper with a simple, intuitive API. |
13 | | -## Getting Started? |
| 13 | + |
| 14 | +## Getting Started |
14 | 15 | ### i. Installation |
15 | 16 | Install the latest version of TurboMapper nuget package with command below. |
16 | 17 |
|
17 | 18 | ``` |
18 | 19 | NuGet\Install-Package TurboMapper |
19 | 20 | ``` |
20 | | -### ii. Developer Guide |
| 21 | + |
| 22 | +### ii. Quick Start Example |
| 23 | +```csharp |
| 24 | +using TurboMapper; |
| 25 | +using Microsoft.Extensions.DependencyInjection; |
| 26 | + |
| 27 | +// Setup |
| 28 | +var services = new ServiceCollection(); |
| 29 | +services.AddTurboMapper(); |
| 30 | +var serviceProvider = services.BuildServiceProvider(); |
| 31 | +var mapper = serviceProvider.GetService<IMapper>(); |
| 32 | + |
| 33 | +// Define models |
| 34 | +public class Source |
| 35 | +{ |
| 36 | + public string Name { get; set; } |
| 37 | + public int Age { get; set; } |
| 38 | +} |
| 39 | + |
| 40 | +public class Target |
| 41 | +{ |
| 42 | + public string Name { get; set; } |
| 43 | + public int Age { get; set; } |
| 44 | +} |
| 45 | + |
| 46 | +// Map single object |
| 47 | +var source = new Source { Name = "John Doe", Age = 30 }; |
| 48 | +var target = mapper.Map<Source, Target>(source); |
| 49 | + |
| 50 | +// Map collections |
| 51 | +var sources = new List<Source> |
| 52 | +{ |
| 53 | + new Source { Name = "Alice", Age = 25 }, |
| 54 | + new Source { Name = "Bob", Age = 32 } |
| 55 | +}; |
| 56 | + |
| 57 | +// Map to IEnumerable<T> |
| 58 | +IEnumerable<Target> targets = mapper.Map<Source, Target>(sources); |
| 59 | +``` |
| 60 | + |
| 61 | +### iii. Developer Guide |
21 | 62 | This comprehensive guide provides detailed information on TurboMapper, covering everything from basic concepts to advanced implementations and troubleshooting guidelines. |
22 | 63 |
|
23 | 64 | Please click on [Developer Guide](https://github.com/CodeShayk/TurboMapper/wiki) for complete details. |
24 | 65 |
|
25 | 66 | ## Release Roadmap |
26 | | -This section provides the summary of planned releases with key details about each release. |
| 67 | +This section provides the summary of planned releases with key details about each release. |
27 | 68 |
|
28 | 69 | | Release Version | Release Date | Key Features | Backward Compatibility | Primary Focus | |
29 | 70 | |----------------|--------------|--------------|----------------------|---------------| |
30 | | -| 1.2.0 | October 2025 | Performance improvements (2x+ speed), collection mapping, custom type converters, conditional mapping, transformation functions, configuration validation, improved error messages | ✅ Fully backward compatible | Core improvements, mapping features, custom conversions | |
| 71 | +| 1.2.0 | October 2025 | Performance improvements (2x+ speed), enhanced collection mapping API, custom type converters, conditional mapping, transformation functions, configuration validation, improved error messages | ✅ Fully backward compatible | Core improvements, mapping features, custom conversions | |
31 | 72 | | 1.4.0 | Jan 2026 | Complex nested mapping, circular reference handling, performance diagnostics, generic collection interfaces, interface-to-concrete mapping, dictionary mapping, .NET Standard compatibility | ✅ Fully backward compatible | Advanced mapping, type features, enhanced conversions | |
32 | 73 | | 2.1.0 | Mid 2026 | Pre-compiled mappings, reverse mapping, async transformations, async collection processing, LINQ expressions, projection support, detailed tracing | ❌ Contains breaking changes (new async methods in IMapper) | Next-gen features, async operations, data access integration | |
33 | 74 |
|
|
0 commit comments