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 3f19104 commit 1f9c068
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cn/Config-inheritance.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,5 @@ Vehicle vehicle = new Car { Id = 1, Name = "Car", Make = "Toyota" };
var dto = vehicle.Adapt<Vehicle, VehicleDto>();

dto.ShouldBeOfType<CarDto>();
((CarDto)dto).Make.ShouldBe("Toyota"); //The 'Make' property doesn't exist in Vehicle
((CarDto)dto).Make.ShouldBe("Toyota"); // "Make" 属性在 Vehicle 中不存在
```
2 changes: 1 addition & 1 deletion cn/Config-instance.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### 配置实例

在 Mapster 中,默认的配置实例为 `TypeAdapterConfig.GlobalSettings`如果需要在不通场景下有不通的设置,Mapster 提供了 `TypeAdapterConfig` 用于实现此需求:
在 Mapster 中,默认的配置实例为 `TypeAdapterConfig.GlobalSettings`如果需要在不同场景下有不同的映射配置,Mapster 提供了 `TypeAdapterConfig` 用于实现此需求:

```csharp
var config = new TypeAdapterConfig();
Expand Down

0 comments on commit 1f9c068

Please sign in to comment.