因和 “Mapster.DependencyInjection” 官方包引用冲突,所以选择获取源码进行发布。源码地址:https://github.com/MapsterMapper/Mapster/tree/v7.4.0/src/Mapster.DependencyInjection
$ dotnet add package Fast.Mapster.DependencyInjection中 | En
An application utility class (framework) that you can integrate into any .NET application.
Fast.NET v3 version is developed using C#10 and .NET6 .NET7 .NET8.In the past, .NET did not have a good open source environment and community in China. As more and more programmers use .NET in China, the domestic open source environment and community are gradually getting better and better.
Various .NET open source frameworks have also emerged in response to the times.
As a newbie who has been working in the .NET industry for N years, I have also used many open source frameworks, so I want to make a small contribution to .NET open source based on my own work experience and experience. Small contribution.
Select the tool module library you need to install. For example:
dotnet add package Fast.xxx
Introduce and use as needed~~~
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);
// Initialize the frame
builder.Initialize();
// Add log service
builder.Services.AddLoggingService(builder.Environment);
// Add Gzip compression
builder.Services.AddGzipCompression();
// Add cross-domain service
builder.Services.AddCorsAccessor();
// Add Mapster service
builder.Services.AddMapster();
// Add serialization service
builder.Services.AddSerialization();
// Add dependency injection service
builder.Services.AddDependencyInjection();
// Add event bus service
builder.Services.AddEventBus();
// Add Redis cache service
builder.Services.AddCache();
// Add JwtBearer service
builder.Services.AddJwtBearer(builder.Configuration);
// Add SqlSugar service
builder.Services.AddSqlSugar(builder.Configuration);
// Add controller.
builder.Services.AddControllers();
// Add dynamic API service
builder.Services.AddDynamicApplication();
// Add normalized return service
builder.Services.AddUnifyResult(builder.Configuration);
// Add standardized document service
builder.Services.AddSwaggerDocuments(builder.Configuration);
var app = builder.Build();
// Mandatory HTTPS.
app.UseHttpsRedirection();
app.UseStaticFiles();
// Enable backward reading.
app.EnableBuffering();
app.UseRouting();
app.MapControllers();
// Enable normalized documents
app.UseSwaggerDocuments();
app.Run();
Sorry, I'm working on it...
Update log Click to view
| Module name | Status | Version | Description | Remarks |
|---|---|---|---|---|
| Fast.Cache | ✅ | Fast.NET Framework cache module library | One in the .NET industry A commonly used Redis cache library for little rookie who has been in the industry for N years, based on CSRedisCore package | |
| Fast.DependencyInjection | ✅ | Fast.NET Framework Dependency Injection Module Library | ||
| Fast.DynamicApplication | ✅ | Fast.NET Framework Dynamic Api Module Library | ||
| Fast.EventBus | ✅ | Fast.NET Framework Event Bus Module Library | ||
| Fast.IaaS | ✅ | Fast.NET framework infrastructure module library (default other module libraries All inherit this module library) | A newbie who has been working in the .NET industry for N years uses commonly used expansion tools. I personally recommend them and they are absolutely easy to use! ! ! | |
| Fast.JwtBearer | ✅ | Fast.NET Framework JwtBearer module library | ||
| Fast.Logging | ✅ | Fast.NET Framework Logging Module Library | ||
| Fast.Mapster | ✅ | Fast.NET Framework Object Mapping Module Library | Based on Mapster Package | |
| Fast.NET.Core | ✅ | Fast.NET Framework Core Module Library | Because Fast.Core already exists in the Nuget package, it was renamed Fast.NET.Core | |
| Fast.Serialization | ✅ | Fast.NET framework serialization module library | Based on System. Text.Json Package | |
| Fast.SqlSugar | ✅ | Fast.NET Framework SqlSugar module library | Based on SqlSugar Package | |
| Fast.Swagger | ✅ | Fast.NET Framework Swagger Module Library | ||
| Fast.UnifyResult | ✅ | Fast.NET framework RESTful style unified return module library |
Status description
Icon Description ⚠️ TBA ⏳ In progress ✅ Complete 💔 Throw away at any time
Fast.NET Follow Apache-2.0 Open source license, everyone is welcome to submit PR or Issue.
Apache Open Source License
Copyright © 2018-Now XiaoFang
The right to deal in the Software is hereby granted free of charge to any person obtaining a copy of this software and its related documentation (the "Software"),
Including but not limited to using, copying, modifying, merging, publishing, distributing, sublicensing, selling copies of the Software,
and permit individuals in possession of a copy of the software to do so, subject to the following conditions:
The above copyright notice and this license notice must be included on all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS AND NON-INFRINGEMENT.
In no event shall the author or copyright holder be liable for any claim, damages or other liability,
WHETHER ARISING IN CONTRACT, TORT OR OTHERWISE, IN CONNECTION WITH THE SOFTWARE OR ITS USE OR OTHER DEALINGS.
Since it is still in the development stage and all functions are not very stable, the Apache-2.0 open source protocol is used for the time being. After all functions are stable, the MIT open source license will be adopted.
| Members | Technology | Nickname | Motto |
|---|---|---|---|
| XiaoFang | Full Stack | 1.8K仔 | Accepting your own mediocrity and ordinaryness is a required course for growth The life you envy is the hardship you have not survived When your ability cannot support you When you are ambitious, you need to calm down and study hard |
| Name | Remarks |
|---|---|
| Visual Studio 2022 | |
| Visual Studio Code | |
| Resharper | The comments starting with // ReSharper that you see in the code are generated by this application to avoid unnecessary warnings or prompts |
Please do not use it for projects that violate the laws of our country.
This framework can be said to continue to reinvent the wheel based on the predecessors, but it is simpler and more convenient than some frameworks on the market. It's better to use. I don't know if we can talk about it.
If it is helpful to you, you can click "Star" in the upper right corner to collect it and get the latest updates. Thank you!