# Console_Dapper **Repository Path**: ray_1998/Console_Dapper ## Basic Information - **Project Name**: Console_Dapper - **Description**: 这是一个使用Dapper 的一个 案例 架构 Reposiroty +Dapper+Interface+Services+IOC(Unity)+的多层项目搭建 重写 封装了一下Dapper的方法,参考了各位前辈的一系列Dapper 以及自己的理解 前辈封装的 Dapper 帮助类(前辈好像是 :barryC), 设计模式是根据老张的Blog.Core 来进行设计的 致敬开源者. - **Primary Language**: C# - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 1 - **Created**: 2020-04-26 - **Last Updated**: 2023-03-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Console_Dapper #### 介绍 这是一个使用Dapper 的一个训练Demo 致敬开源者. #### 软件架构 软件架构说明 Reposiroty(仓储层)+Dapper(ORM)+Interface(接口层)+Services(服务层)+IOC(Unity)+控制台(UI层)+的多层项目搭建 重写封装了一下Dapper的方法,参考了各位前辈的一系列Dapper 以及自己的理解,自己也是照葫芦画瓢,主要也是为了加深理解 在学习的过程中,也看到了几种关于Dapper 的使用 1: 使用泛型+异步+兰姆达 2: 使用XML+ Redis 3: 类似ADO.NET 一样使用 我觉得第一,第二种方法挺好的,第三种,虽然说可以使用,但是,假如每一个model 对应一个Repository ,对应增删改查,每个类都需要写这四个方法 这里代码有些重复了,我的想法是 写个基类,然后继承,每个Repository 需要特定的方法在写在各自的 Repository 中,这样代码也少了很多. 当然,这都是自己的一些理解,全靠大家喜好 ORM Dapper 帮助类 : https://gitee.com/cyb331 #### 安装教程 1. xxxx 2. xxxx 3. xxxx #### 使用说明1. xxxx 2. xxxx 3. xxxx #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 码云特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)