Skip to content

Commit

Permalink
更改不合理的文字
Browse files Browse the repository at this point in the history
  • Loading branch information
yihango committed Jun 21, 2021
1 parent 60ab7af commit f300682
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 19 deletions.
2 changes: 1 addition & 1 deletion cn/Attribute-base-Code-generation.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 基于 Attribute 的代码生成
# 基于 Attribute 生成代码

### 生成模型

Expand Down
5 changes: 3 additions & 2 deletions cn/Debugging.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 调试映射
# 调试

### 步进调试

Expand Down Expand Up @@ -56,4 +56,5 @@ var dto = poco.Adapt<SimplePoco, SimpleDto>(); //<--- 你可以步进调试到
| Method | Mean | StdDev | Error | Gen 0 | Gen 1 | Gen 2 | Allocated |
| ------------------------ | --------: | -------: | -------: | ---------: | ----: | ----: | --------: |
| 'Mapster 4.1.1' | 115.31 ms | 0.849 ms | 1.426 ms | 31000.0000 | - | - | 124.36 MB |
| 'Mapster 4.1.1 (Roslyn)' | 53.55 ms | 0.342 ms | 0.654 ms | 31100.0000 | - | - | 124.36 MB |
| 'Mapster 4.1.1 (Roslyn)' | 53.55 ms | 0.342 ms | 0.654 ms | 31100.0000 | - | - | 124.36 MB |

2 changes: 1 addition & 1 deletion cn/Dependency-Injection.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ public class FooService {
...
}
}
```
```
2 changes: 1 addition & 1 deletion cn/FastExpressionCompiler.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ TypeAdapterConfig.GlobalSettings.Compiler = exp => exp.CompileFast();
| Method | Mean | StdDev | Error | Gen 0 | Gen 1 | Gen 2 | Allocated |
| --------------------- | --------: | -------: | -------: | ---------: | ----: | ----: | --------: |
| 'Mapster 4.1.1' | 115.31 ms | 0.849 ms | 1.426 ms | 31000.0000 | - | - | 124.36 MB |
| 'Mapster 4.1.1 (FEC)' | 54.70 ms | 1.023 ms | 1.546 ms | 29600.0000 | - | - | 118.26 MB |
| 'Mapster 4.1.1 (FEC)' | 54.70 ms | 1.023 ms | 1.546 ms | 29600.0000 | - | - | 118.26 MB |
2 changes: 1 addition & 1 deletion cn/Fluent-API-Code-generation.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Fluent API 代码生成
# 基于 Fluent API 生成代码

### 配置类型

Expand Down
8 changes: 4 additions & 4 deletions cn/Immutable.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Immutable 不可变集合支持
# Immutable 类型支持

这个插件将支持映射到 Immutable 不可变集合
这个插件将支持映射到 Immutable 类型

### 安装
### 安装nuget包

PM> Install-Package Mapster.Immutable

### 如何使用

对配置实例调用 `EnableImmutableMapping` 方法启用对 不可变集合的映射支持
对配置实例调用 `EnableImmutableMapping` 方法启用Immutable类型映射

**全局配置实例**

Expand Down
8 changes: 5 additions & 3 deletions cn/Json.net.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ TypeAdapterConfig.GlobalSettings.EnableJsonMapping();
config.EnableJsonMapping();
```

启用JSON.NET插件将支持映射到以下功能:
启用 [JSON.NET](https://www.nuget.org/packages/Mapster.JsonNet/) 插件将支持以下功能:

- 映射 [JSON.NET](https://www.nuget.org/packages/Newtonsoft.Json) 特有的类型,例如将 `JToken`, `JArray`, `JObject` 映射到自定义类型或将自定义类型映射到这些类型。
-[JSON.NET](https://www.nuget.org/packages/Newtonsoft.Json) 类型支持基于字符串的序列化和反序列化。


- 映射 JSON.NET 特有的类型,例如将 `JToken`, `JArray`, `JObject` 映射到自定义类型或将自定义类型映射到这些类型。
- 对 JSON.NET 的类型支持基于字符串的序列化和反序列化。

5 changes: 2 additions & 3 deletions cn/Mapster.Tool.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Mapster.Tool

## Mapster.Tool

### 安装 Mapster.Tool
```bash
# 如果已经拥有dotnet-tools.json,则跳过此步骤
Expand Down Expand Up @@ -133,4 +131,5 @@ Sample.CodeGen

### Sample

- https://github.com/MapsterMapper/Mapster/tree/master/src/Sample.CodeGen
- https://github.com/MapsterMapper/Mapster/tree/master/src/Sample.CodeGen

2 changes: 1 addition & 1 deletion cn/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* [值的映射](Setting-values.md) *[原文](https://github.com/MapsterMapper/Mapster/wiki/Setting-values)*
* [拷贝与合并](Shallow-merge.md) *[原文](https://github.com/MapsterMapper/Mapster/wiki/Shallow-merge)*
* [对象引用](Object-references.md) *[原文](https://github.com/MapsterMapper/Mapster/wiki/Object-references)*
* [自定义转换逻辑](Custom-conversion-logic.md) *[原文](https://github.com/MapsterMapper/Mapster/wiki/Custom-conversion-logic)*
* [自定义映射逻辑](Custom-conversion-logic.md) *[原文](https://github.com/MapsterMapper/Mapster/wiki/Custom-conversion-logic)*


##### 插件
Expand Down
4 changes: 2 additions & 2 deletions cn/TextTemplate.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# TextTemplate
# 使用 TextTemplate 生成代码

### TextTemplate
### 安装nuget包
```
PM> Install-Package ExpressionTranslator
```
Expand Down

0 comments on commit f300682

Please sign in to comment.