# dtomap **Repository Path**: glzsk/dtomap ## Basic Information - **Project Name**: dtomap - **Description**: C#的Enity->DTO之间进行转换 - **Primary Language**: Go - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-07-06 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # dtomap 将C#中的数据库模型与对应的DTO进行一对一映射。 示例如下: ```C# public class Entity { public int SysNo{get;set;} public int Name{get;set;} } public class DTO { public int SysNo{get;set;} public int Name{get;set;} } ``` 映射后: ```csharp new DTO(){ SysNo=tmp.SysNo, Name=tmp.Name } ``` ## 常用命令 -sp 源文件路径 -dp 转换后保存文件路径(默认与源文件在同一目录,与pmtc互斥) -pctc 打印解析出的类到控制台 -pmtc 打印转化后的代码到控制台(默认true)