awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
MapsterMapper avatar

MapsterMapper/Mapster

0
View on GitHub↗
5,127 星标·406 分支·C#·MIT·5 次浏览mapstermapper.github.io/Mapster↗

Mapster

Mapster 是一个 .NET 对象到对象映射器和高性能映射引擎,用于在不同对象模型之间转换数据。它作为类型安全的数据传输工具和 LINQ 查询投影工具,用于在内部逻辑和外部数据结构之间移动数据。

该引擎利用编译后的映射表达式和机器码来减少对象转换过程中的开销。它特别允许将可查询的数据源直接投影到目标类型中,以优化数据库检索。

该工具集涵盖了数据传输对象(DTO)生成、不可变数据转换和查询结果投影。它包括映射不可变集合、保留对象引用以及将运行时参数注入转换过程的功能。

Features

  • Object-to-Object Mappers - Provides a high-performance engine for copying values between two different memory-resident object types.
  • Automated Data Projection - Projects queryable data sources directly into target object shapes to reduce retrieved data volume.
  • Query Projections - Translates mapping definitions directly into IQueryable expressions to filter and project data at the database level.
  • Query Projections - Allows projecting queryable data sources directly into destination types to reduce database retrieval overhead.
  • Query Projection Tools - Provides utilities to project queryable data sources into specific types, limiting retrieved columns to optimize performance.
  • Expression Tree Compilation - Implements high-performance mapping by compiling expression trees into executable delegates to eliminate reflection overhead.
  • Object Transformation Compilers - Utilizes compiled mapping expressions and machine code to maximize throughput during object conversions.
  • .NET Object Mapping - Provides a specialized library for transferring data between object types within the .NET ecosystem.
  • Runtime IL Emission - Generates optimized Common Intermediate Language at runtime to maximize throughput during object transformations.
  • Data Transfer Object Mapping - Provides tools for mapping domain entities to data transfer objects to decouple internal logic from external schemas.
  • Property Value Transformers - Allows definition of custom logic to determine destination property values based on one or more source properties.
  • Dynamic Mapping Engines - Implements high-performance runtime code generation via IL to map objects with minimal overhead.
  • Immutable Data Mapping - Transforms data into read-only lists, dictionaries, or sets to ensure destination immutability.
  • Mapper Code Generation - Creates mapper classes at compile time to ensure type safety and increase execution speed during data transfers.
  • Type-Safe Mapping Generation - Generates data transfer objects and mapping logic to ensure type safety at compile time.
  • Reference Tracking - Tracks object identities during mapping to preserve shared references and prevent circular dependency loops.
  • Fluent Configuration APIs - Provides a fluent API for defining type transformation rules through a chainable method interface.
  • Mapping Caches - Optimizes transformation throughput by caching and reusing compiled mapping functions.
  • Object Reference Mapping - Tracks and reuses existing object references during mapping to prevent duplicate objects in the target graph.
  • Core .NET Libraries - High-performance, lightweight object-to-object mapping library.
  • Object Mapping - High-performance object mapping library for .NET.

Star 历史

mapstermapper/mapster 的 Star 历史图表mapstermapper/mapster 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Mapster 的开源替代方案

相似的开源项目,按与 Mapster 的功能重合度排序。
  • automapper/automapperAutoMapper 的头像

    AutoMapper/AutoMapper

    10,191在 GitHub 上查看↗

    AutoMapper is a .NET object-to-object mapper designed to transfer data between different object types. It functions as an automated mapping library that reduces the need for manual property assignments by using naming conventions to match properties between classes. The library focuses on automating data projection and the conversion of internal domain models into data transfer objects. It supports layered architecture decoupling by mapping data between domain entities and view models. The system employs convention-based member matching, flattening-based property projection, and recursive ty

    C#
    在 GitHub 上查看↗10,191
  • riok/mapperlyriok 的头像

    riok/mapperly

    4,100在 GitHub 上查看↗

    Mapperly is a C# source generator used for high-performance object-to-object mapping in .NET. It functions as a compile-time mapping library that produces the necessary transformation code during the build process, eliminating the need for runtime reflection when converting between domain models and data transfer objects. The tool distinguishes itself by providing type-safe diagnostic validation and strict mapping enforcement, emitting warnings for unmapped properties at compile time. It includes specialized capabilities for circular reference handling and deep cloning to maintain object iden

    C#
    在 GitHub 上查看↗4,100
  • luckypennysoftware/automapperLuckyPennySoftware 的头像

    LuckyPennySoftware/AutoMapper

    10,190在 GitHub 上查看↗

    AutoMapper is a strongly typed object-to-object mapper for .NET. It provides utilities for copying data between different object representations using convention-based property matching to eliminate manual assignment code. The library automates the transformation of data models by matching source and destination properties based on shared names and types. It supports the conversion of internal domain models into data transfer objects, facilitating data movement between presentation, business, and data access layers. The system employs reflection-based type discovery and recursive object grap

    C#
    在 GitHub 上查看↗10,190
  • sebastianbergmann/object-enumeratorsebastianbergmann 的头像

    sebastianbergmann/object-enumerator

    6,537在 GitHub 上查看↗

    Object-enumerator is a data structure crawler and enumeration library designed to discover and list all objects stored within deep or circular data references. It functions as a traversal tool that recursively walks through nested arrays and object graphs to identify every individual referenced object. The library flattens complex hierarchical data structures into a linear collection of unique objects. This process enables data structure analysis and memory reference mapping by tracing all objects connected to a root element to understand the overall composition of a data set.

    PHP
    在 GitHub 上查看↗6,537
查看 Mapster 的所有 30 个替代方案→

常见问题解答

mapstermapper/mapster 是做什么的?

Mapster 是一个 .NET 对象到对象映射器和高性能映射引擎,用于在不同对象模型之间转换数据。它作为类型安全的数据传输工具和 LINQ 查询投影工具,用于在内部逻辑和外部数据结构之间移动数据。

mapstermapper/mapster 的主要功能有哪些?

mapstermapper/mapster 的主要功能包括:Object-to-Object Mappers, Automated Data Projection, Query Projections, Query Projection Tools, Expression Tree Compilation, Object Transformation Compilers, .NET Object Mapping, Runtime IL Emission。

mapstermapper/mapster 有哪些开源替代品?

mapstermapper/mapster 的开源替代品包括: automapper/automapper — AutoMapper is a .NET object-to-object mapper designed to transfer data between different object types. It functions as… riok/mapperly — Mapperly is a C# source generator used for high-performance object-to-object mapping in .NET. It functions as a… luckypennysoftware/automapper — AutoMapper is a strongly typed object-to-object mapper for .NET. It provides utilities for copying data between… sebastianbergmann/object-enumerator — Object-enumerator is a data structure crawler and enumeration library designed to discover and list all objects stored… ricosuter/nswag — NSwag is an OpenAPI toolchain for .NET that provides a suite of generators for converting OpenAPI specifications and… codermjlee/mjextension — MJExtension is a JSON serialization library and model mapping framework used to convert data between JSON strings and…