Fast.Mapster
3.5.2
dotnet add package Fast.Mapster --version 3.5.2
NuGet\Install-Package Fast.Mapster -Version 3.5.2
<PackageReference Include="Fast.Mapster" Version="3.5.2" />
<PackageVersion Include="Fast.Mapster" Version="3.5.2" />
<PackageReference Include="Fast.Mapster" />
paket add Fast.Mapster --version 3.5.2
#r "nuget: Fast.Mapster, 3.5.2"
#addin nuget:?package=Fast.Mapster&version=3.5.2
#tool nuget:?package=Fast.Mapster&version=3.5.2
中 | En
Fast.NET(v3)
一个应用程序工具类(框架),您可以将它集成到任何 .NET
应用程序中。
技术选择
Fast.NET
v3 版本采用C#10
和.NET6
.NET7
.NET8
进行开发。
项目背景
过去 .NET
在国内并没有很好的开源环境和社区,随着国内使用 .NET
的程序猿越来越多,慢慢的国内的开源环境和社区也越来越好。
各种 .NET
开源框架,也应时代而生。
本人作为在 .NET
行业中从业 N年
的 小菜鸟
,也用过了很多开源的框架,所以想基于自己的工作经验和经历,为 .NET
开源做出一份小小的贡献。
安装
选择您需要的工具模块库进行安装。例如:
dotnet add package Fast.xxx
例子
按需引入使用~~~
using Fast.Cache;
using Fast.DependencyInjection;
using Fast.DynamicApplication;
using Fast.EventBus;
using Fast.JwtBearer;
using Fast.Logging;
using Fast.Mapster;
using Fast.NET.Core;
using Fast.Serialization;
using Fast.SqlSugar;
using Fast.Swagger;
using Fast.UnifyResult;
var builder = WebApplication.CreateBuilder(args);
// 初始化 框架
builder.Initialize();
// 添加日志服务
builder.Services.AddLoggingService(builder.Environment);
// 添加 Gzip 压缩
builder.Services.AddGzipCompression();
// 添加跨域服务
builder.Services.AddCorsAccessor();
// 添加 Mapster 服务
builder.Services.AddMapster();
// 添加序列化服务
builder.Services.AddSerialization();
// 添加依赖注入服务
builder.Services.AddDependencyInjection();
// 添加事件总线服务
builder.Services.AddEventBus();
// 添加 Redis 缓存服务
builder.Services.AddCache();
// 添加 JwtBearer 服务
builder.Services.AddJwtBearer(builder.Configuration);
// 添加 SqlSugar 服务
builder.Services.AddSqlSugar(builder.Configuration);
// Add controller.
builder.Services.AddControllers();
// 添加动态Api服务
builder.Services.AddDynamicApplication();
// 添加规范化返回服务
builder.Services.AddUnifyResult(builder.Configuration);
// 添加规范化文档服务
builder.Services.AddSwaggerDocuments(builder.Configuration);
var app = builder.Build();
// Mandatory Https.
app.UseHttpsRedirection();
app.UseStaticFiles();
// Enable backward reading.
app.EnableBuffering();
app.UseRouting();
app.MapControllers();
// 启用规范化文档
app.UseSwaggerDocuments();
app.Run();
文档
很抱歉,我正在努力中...
更新日志
更新日志 点击查看
详细功能(模块说明)
模块名称 | 状态 | 版本 | 说明 | 备注 |
---|---|---|---|---|
Fast.Cache | ✅ | Fast.NET 框架缓存模块库 | 一个在 .NET 行业中从业 N年 的 小菜鸟 常用的 Redis 缓存库,基于 CSRedisCore 封装 |
|
Fast.DependencyInjection | ✅ | Fast.NET 框架依赖注入模块库 | ||
Fast.DynamicApplication | ✅ | Fast.NET 框架动态Api模块库 | ||
Fast.EventBus | ✅ | Fast.NET 框架事件总线模块库 | ||
Fast.IaaS | ✅ | Fast.NET 框架基础设施模块库 | 一个在 .NET 行业中从业 N年 的 小菜鸟 常用的拓展工具类,亲自推荐,绝对好用!!! |
|
Fast.JwtBearer | ✅ | Fast.NET 框架 JwtBearer 模块库 | ||
Fast.Logging | ✅ | Fast.NET 框架日志模块库 | ||
Fast.Mapster | ✅ | Fast.NET 框架对象映射模块库 | 基于 Mapster 封装 | |
Fast.NET.Core | ✅ | Fast.NET 框架核心模块库 | 因 Fast.Core 已存在 Nuget 包,故改名 Fast.NET.Core | |
Fast.Runtime | ✅ | Fast.NET 框架核心运行库 | ||
Fast.Serialization.Newtonsoft.Json | ✅ | Fast.NET 框架 Newtonsoft.Json 序列化模块库 | 基于 Newtonsoft.Json 封装 | |
Fast.Serialization.System.Text.Json | ✅ | Fast.NET 框架 System.Text.Json 序列化模块库 | 基于 System.Text.Json 封装 | |
Fast.SqlSugar | ⏳ | Fast.NET 框架 SqlSugar 模块库 | 基于 SqlSugar 封装 | |
Fast.Swagger | ✅ | Fast.NET 框架 Swagger 模块库 | ||
Fast.UnifyResult | ✅ | Fast.NET 框架RESTful风格统一返回模块库 |
近期计划
- [✅] 基础设施模块
- [✅] 核心模块
- [✅] 跨域处理模块
- [✅] 对象映射模块
- [✅] Redis缓存模块
- [✅] 序列化模块
- [✅] 依赖注入模块
- [✅] 动态API模块
- [✅] 规范化文档模块
- [✅] 规范化返回模块
- [✅] 日志模块
- [✅] 事件总线
- [✅] SqlSugar
- [⚠️] ...
状态说明
图标 描述 ⚠️ 待定 ⏳ 进行中 ✅ 完成 💔 随时抛弃
协议
Fast.NET 遵循 Apache-2.0 开源协议,欢迎大家提交 PR
或 Issue
。
Apache开源许可证
版权所有 © 2018-Now 小方
许可授权:
本协议授予任何获得本软件及其相关文档(以下简称“软件”)副本的个人或组织。
在遵守本协议条款的前提下,享有使用、复制、修改、合并、发布、分发、再许可、销售软件副本的权利:
1.所有软件副本或主要部分必须保留本版权声明及本许可协议。
2.软件的使用、复制、修改或分发不得违反适用法律或侵犯他人合法权益。
3.修改或衍生作品须明确标注原作者及原软件出处。
特别声明:
- 本软件按“原样”提供,不提供任何形式的明示或暗示的保证,包括但不限于对适销性、适用性和非侵权的保证。
- 在任何情况下,作者或版权持有人均不对因使用或无法使用本软件导致的任何直接或间接损失的责任。
- 包括但不限于数据丢失、业务中断等情况。
免责条款:
禁止利用本软件从事危害国家安全、扰乱社会秩序或侵犯他人合法权益等违法活动。
对于基于本软件二次开发所引发的任何法律纠纷及责任,作者不承担任何责任。
由于目前还属于开发阶段,所有功能皆不是很稳定,所以暂且使用 Apache-2.0 开源协议。后续等所有功能都稳定后,会采用 MIT 开源协议。
团队成员
成员 | 技术 | 昵称 | 座右铭 |
---|---|---|---|
小方 | 全栈 | 1.8K仔 | 接受自己的平庸和普通,是成长的必修课 <br> 你羡慕的生活都是你没熬过的苦 <br> 当你的能力还撑不起你的野心时,你就需要静下心来 好好学习 |
编码环境
名称 | 备注 |
---|---|
Visual Studio 2022 | |
Visual Studio Code | |
Resharper | 您在代码中所看到的以 // ReSharper 开头的注释,就是此应用生成的为了避免一些不必要的警告或提示 |
免责申明
请勿用于违反我国法律的项目上
本框架可以说是在各位前辈的基础上继续进行造轮子,只是比市面上的一些框架会更简洁,更方便。更好用我不知道是否能相谈。
补充说明
如果对您有帮助,您可以点右上角 “Star” 收藏一下 ,获取第一时间更新,谢谢!
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net6.0
- Fast.Runtime (>= 3.5.2)
- Mapster (>= 7.4.0)
- Mapster.DependencyInjection (>= 1.0.1)
-
net7.0
- Fast.Runtime (>= 3.5.2)
- Mapster (>= 7.4.0)
- Mapster.DependencyInjection (>= 1.0.1)
-
net8.0
- Fast.Runtime (>= 3.5.2)
- Mapster (>= 7.4.0)
- Mapster.DependencyInjection (>= 1.0.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Fast.Mapster:
Package | Downloads |
---|---|
Fast.Mapster.DependencyInjection
因和 “Mapster.DependencyInjection” 官方包引用冲突,所以选择获取源码进行发布。源码地址:https://github.com/MapsterMapper/Mapster/tree/v7.4.0/src/Mapster.DependencyInjection |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
3.5.2 | 95 | 5/22/2025 |
3.5.1 | 97 | 5/21/2025 |
3.5.0 | 143 | 5/2/2024 |
3.4.20 | 156 | 3/14/2024 |
3.4.19.7 | 208 | 3/6/2024 |
3.4.19.6 | 204 | 3/6/2024 |
3.4.19.5 | 182 | 2/28/2024 |
3.4.19.4 | 151 | 2/27/2024 |
3.4.19.3 | 246 | 2/26/2024 |
3.4.19.2 | 193 | 2/23/2024 |
3.4.19.1 | 196 | 2/23/2024 |
3.4.19 | 231 | 2/22/2024 |
3.4.18.18 | 295 | 2/2/2024 |
3.4.18.17 | 269 | 2/1/2024 |
3.4.18.16 | 266 | 2/1/2024 |
3.4.18.15 | 271 | 2/1/2024 |
3.4.18.14 | 252 | 2/1/2024 |
3.4.18.13 | 233 | 2/1/2024 |
3.4.18.12 | 247 | 2/1/2024 |
3.4.18.11 | 236 | 2/1/2024 |
3.4.18.10 | 270 | 1/31/2024 |
3.4.18.9 | 242 | 1/31/2024 |
3.4.18.8 | 290 | 1/31/2024 |
3.4.18.7 | 267 | 1/31/2024 |
3.4.18.6 | 289 | 1/30/2024 |
3.4.18.5 | 307 | 1/30/2024 |
3.4.18.4 | 212 | 1/30/2024 |
3.4.18.3 | 263 | 1/29/2024 |
3.4.18.2 | 241 | 1/29/2024 |
3.4.18.1 | 271 | 1/29/2024 |
3.4.18 | 265 | 1/27/2024 |
3.4.17.10 | 280 | 1/24/2024 |
3.4.17.9 | 243 | 1/24/2024 |
3.4.17.8 | 284 | 1/24/2024 |
3.4.17.7 | 269 | 1/23/2024 |
3.4.17.6 | 286 | 1/20/2024 |
3.4.17.5 | 306 | 1/20/2024 |
3.4.17.4 | 276 | 1/20/2024 |
3.4.17.3 | 254 | 1/20/2024 |
3.4.17.2 | 249 | 1/20/2024 |
3.4.17.1 | 270 | 1/18/2024 |
3.4.17 | 266 | 1/18/2024 |
3.4.16 | 297 | 1/17/2024 |
3.4.15 | 277 | 1/12/2024 |
3.4.14 | 301 | 1/12/2024 |
3.4.13 | 294 | 1/11/2024 |
3.4.12 | 291 | 1/10/2024 |
3.4.11.1 | 288 | 1/10/2024 |
3.4.11 | 316 | 1/10/2024 |
3.4.10.4 | 271 | 1/9/2024 |
3.4.10.3 | 261 | 1/9/2024 |
3.4.10.2 | 266 | 1/9/2024 |
3.4.10.1 | 280 | 1/9/2024 |
3.4.10 | 317 | 1/9/2024 |
3.4.9.1 | 314 | 1/8/2024 |
3.4.9 | 319 | 1/8/2024 |
3.4.8 | 309 | 1/6/2024 |
3.4.7.3 | 296 | 1/6/2024 |
3.4.7.2 | 271 | 1/6/2024 |
3.4.7.1 | 320 | 1/5/2024 |
3.4.7 | 305 | 1/5/2024 |
3.4.6.3 | 286 | 12/28/2023 |
3.4.6.2 | 291 | 12/27/2023 |
3.4.6.1 | 302 | 12/27/2023 |
3.4.6 | 260 | 12/26/2023 |
3.4.5 | 349 | 12/25/2023 |
3.4.4 | 296 | 12/25/2023 |
3.4.3 | 324 | 12/25/2023 |
3.4.2 | 299 | 12/19/2023 |
3.4.1 | 333 | 12/14/2023 |
3.4.0 | 300 | 12/7/2023 |
3.3.4 | 308 | 11/24/2023 |
3.3.3 | 305 | 11/22/2023 |
3.3.2 | 298 | 11/17/2023 |
3.3.1 | 273 | 11/16/2023 |
3.2.20 | 277 | 11/14/2023 |
3.2.19 | 323 | 11/14/2023 |
3.2.18 | 312 | 11/14/2023 |
3.2.17 | 286 | 11/13/2023 |
3.2.16 | 320 | 11/13/2023 |
3.2.15 | 320 | 11/13/2023 |
3.2.14 | 344 | 11/13/2023 |
3.2.13 | 306 | 11/12/2023 |
3.2.12 | 279 | 11/11/2023 |
3.2.11 | 299 | 11/2/2023 |
3.2.10 | 292 | 11/2/2023 |
3.2.9 | 273 | 11/2/2023 |
3.2.7 | 361 | 11/2/2023 |
3.2.6 | 288 | 11/2/2023 |
3.2.5 | 351 | 11/2/2023 |
3.2.4 | 296 | 11/1/2023 |
3.2.3 | 336 | 11/1/2023 |
3.2.2 | 290 | 11/1/2023 |
3.2.1 | 291 | 11/1/2023 |
3.2.0 | 333 | 11/1/2023 |
3.1.10 | 369 | 11/1/2023 |
3.1.9 | 298 | 11/1/2023 |
3.1.8 | 338 | 10/31/2023 |
3.1.7 | 310 | 10/31/2023 |
3.1.6 | 304 | 10/28/2023 |
3.1.5 | 313 | 10/28/2023 |
3.1.4 | 302 | 10/27/2023 |
3.1.3 | 348 | 10/27/2023 |
3.1.2 | 332 | 10/27/2023 |
3.1.1 | 306 | 10/27/2023 |
3.0.10-test.1.20231026.7 | 76 | 10/26/2023 |
3.0.10-test.1.20231026.6 | 76 | 10/26/2023 |
3.0.10-test.1.20231026.5 | 72 | 10/26/2023 |
3.0.10-test.1.20231026.4 | 76 | 10/26/2023 |
3.0.10-test.1.20231026.3 | 86 | 10/26/2023 |
3.0.10-test.1.20231026.2 | 74 | 10/26/2023 |
3.0.10-test.1.20231026.1 | 78 | 10/26/2023 |
3.0.10-test.1.20231025.4 | 77 | 10/25/2023 |
3.0.10-test.1.20231025.3 | 74 | 10/25/2023 |
3.0.10-test.1.20231025.2 | 78 | 10/25/2023 |
3.0.10-test.1.20231025.1 | 84 | 10/25/2023 |
3.0.9-test.1.20231024.1 | 86 | 10/25/2023 |
3.0.8 | 349 | 10/11/2023 |
3.0.7 | 302 | 10/5/2023 |
3.0.6 | 299 | 10/4/2023 |
3.0.5 | 290 | 10/4/2023 |
3.0.4 | 345 | 10/4/2023 |
3.0.3 | 326 | 10/2/2023 |
3.0.2 | 363 | 9/25/2023 |
3.0.1 | 315 | 9/23/2023 |
3.0.0 | 310 | 9/23/2023 |