T4template

Generates data models and a Dapper-based Data Access Layer (DAL) efficiently from a database schema. Supports batch generation of models and allows customization and extension of the generated code to fit specific needs.

Author

T4template logo

lvanovchen

No License

Quick Info

GitHub GitHub Stars 0
NPM Weekly Downloads 0
Tools 1
Last Updated 22/7/2024

Tags

tools dal t4template developer tools tools integrations dal efficiently

T4Template

《使用T4批量生成Model和基于Dapper的DAL》

使用方法:

1、T4Dal 打开T4_Dal.tt,修改数据库连接字符串:connectionString,Ctrl + S保存。 ok

2、T4Model这个有两种。 t4_Model1引用了 MultipleOutputHelper.ttinclude,能够批量生成,但是字段类型。。。 t4_Model2引用了 DbHelper.ttinclude,目前只能申成单个表。自己扩展吧。

3、T4Bll 同1

4、T4Model1 批量生成,字段类型也修改了。