chore(README): fix typos
Signed-off-by: Alan Brault <alan.brault@visus.io>
This commit is contained in:
@@ -34,7 +34,7 @@ and reduce the reliance on expensive reflection-based mapping.
|
|||||||
|
|
||||||
## How It Works
|
## How It Works
|
||||||
|
|
||||||
The project **MapperSourceGen.SourceGenerator** contains a source generator that scans for classes decorated with the `GenerateMapperAttribute`.
|
The project **MapperSourceGen.SourceGenerator** contains a source generator that scans for classes decorated with the `MapperAttribute`.
|
||||||
When it finds such a class, it generates a DTO and a mapping class for it.
|
When it finds such a class, it generates a DTO and a mapping class for it.
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
@@ -43,7 +43,7 @@ Let's say you have a class `Order` that you want to generate a DTO and mapping c
|
|||||||
|
|
||||||
**Order.cs**
|
**Order.cs**
|
||||||
```csharp
|
```csharp
|
||||||
[Mapper]
|
[Mapper] // tells the source generator to generate a DTO and mapping class for this class
|
||||||
public sealed class Order
|
public sealed class Order
|
||||||
{
|
{
|
||||||
[MapAlias("EntityId")] // renames Id to EntityId in the DTO
|
[MapAlias("EntityId")] // renames Id to EntityId in the DTO
|
||||||
|
|||||||
Reference in New Issue
Block a user