|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/net-core-mvc-with-dapper-the-complete-course-full-scratch/
课程评论:没有评论
**.NET Core MVC with Dapper - 完整项目实战课程总结** 本课程旨在教授如何使用 .NET Core MVC 和 Dapper 构建一个完整的电商项目。课程内容涵盖了 Dapper 的基础知识、数据库交互、关系处理(一对一、一对多、多对多),并结合 .NET 8 和 Dapper 技术,从零开始构建一个功能齐全的电商平台。 **核心内容包括:** * **Dapper 基础与数据库交互:** * Dapper 基础教程,讲解其如何与数据库对象进行通信。 * 如何使用 Dapper 处理数据库关系,包括一对一、一对多,以及多对多关系。 * 通过 Stored Procedures(存储过程)与数据库表进行交互。 * Dapper 的常用方法,如 `ExecuteAsync`、`QueryAsync`、`QueryFirstOrDefault`,以及 `Split Tables` 的应用。 * **电商项目实战:** * 构建一个完整的电商项目,包含 UI、产品目录、购物车和订单详情等模块。 * **后台管理模块:** * 产品和分类目录的 CRUD (创建、读取、更新、删除) 操作。 * 管理用户订单。 * **用户模块:** * 商品加入购物车。 * 处理订单流程。 * **安全与授权:** * 使用 Dapper 实现高效的身份验证和授权。 * 基于数据库表创建 Session。 * 利用 Filter(过滤器)进行授权控制,特别是自定义的 `Authorize Filter`,用于根据用户角色过滤客户请求。 * 实现自定义用户账户,并使用哈希密码进行安全存储。 * 通过 Dapper 填充用户信息(Seed User Information)。 * **架构与设计模式:** * 结合 Repository 模式和依赖注入(Dependency Injection)来处理 Dapper 的数据库通信。 * 为管理员和客户提供不同的 Dashboard(仪表盘)视图。 **项目特色与未来规划:** * 项目内置了基于 Repository Pattern 和 Dependency Injection 的 Dapper 通信机制,确保代码的可维护性和可扩展性。 * 目前支付选项正在开发中,计划后续集成 Stripe 和 Razor Pay。 总而言之,本课程通过一个完整的电商项目,深入浅出地讲解了 .NET Core MVC 和 Dapper 的结合使用,涵盖了从基础到高级的应用,尤其在数据库交互、关系映射、安全实现和架构设计方面提供了宝贵的实践经验。
Dapper Fundamentals Tutorials , How Dapper Communicate with database objects. How Dapper Handle Relationships like one to one and one to many and many to many. Complete Example of Ecommerce Project in.NET 8 with Dapper Technique. In project we have Some modules like UI, Product catalogue , cart and Order Details. How Dapper Handle Authentication and Authorization using efficient manner. Dapper communicate with database table create a session. Use Filters to Authorize. In this project we have a Repository pattern with Dependency Injection to handle Dapper Communication. We have a Dashboard for Admin and Customer. Admin Manage. Product Catalogue. Right now payment option is under processing but we will add later using stripe method and razor pay. Dapper Communicate with database table using stored procedure.- Modules of the Ecommerce ProjectAdmin Module - CRUD Operation on Product and Category Catalogue , Manage Customer OrderCustomer Module - Add Item into Cart and Proceed OrderDapper Connection - Using one to many and many to many mappingDapper Security - Custom User Account with Hased passwordSeed User Information using DapperRepository Pattern with Dependency Injection.Dapper Methods which is Used in Project- ExecuteAsync, QueryAsync,QueryFirstOrDefault, Split TablesAccess data from database table via stored procedue.Filters - Customer Request filter by their roles. In this project , i use custom Authorize Filter for customer request