Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vipwan/Biwen.AutoClassGen
Source Gen Roslyn
https://github.com/vipwan/Biwen.AutoClassGen
dto-generator roslyn source-generation
Last synced: about 1 month ago
JSON representation
Source Gen Roslyn
- Host: GitHub
- URL: https://github.com/vipwan/Biwen.AutoClassGen
- Owner: vipwan
- License: mit
- Created: 2023-10-31T18:33:55.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-10-11T09:46:36.000Z (2 months ago)
- Last Synced: 2024-11-01T09:39:25.289Z (about 1 month ago)
- Topics: dto-generator, roslyn, source-generation
- Language: C#
- Homepage:
- Size: 263 KB
- Stars: 15
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README-zh.md
- License: LICENSE.txt
Awesome Lists containing this project
- RSCG_Examples - https://github.com/vipwan/Biwen.AutoClassGen
README
## Biwen.AutoClassGen
使用场景:很多时候我们的请求对象会特别多比如GetIdRequest,GetUserRequest etc...,这些Request可能大量存在相同的字段,
比如多租户Id,分页数,这些属性字段可能又存在验证规则,绑定规则,以及Swagger描述等信息,
如果这些代码都需要人肉敲那会增加很多工作量,所以Biwen.AutoClassGen应运而生,解决这个痛点...
- 用于生成C#类的工具,自动生成类的属性,并且属性的Attribute全部来自Interface### 用法
```bash
dotnet add package Biwen.AutoClassGen.Attributes
```- [DTO生成器文档](https://github.com/vipwan/Biwen.AutoClassGen/blob/master/Gen-Dto.md)
- [Req生成器文档](https://github.com/vipwan/Biwen.AutoClassGen/blob/master/Gen-request.md)
- [Decor装饰器文档](https://github.com/vipwan/Biwen.AutoClassGen/blob/master/Gen-Decor.md)### Used by
#### if you use this library, please tell me, I will add your project here.
- [Biwen.QuickApi](https://github.com/vipwan/Biwen.QuickApi)