|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/entity-framework-building-real-world-applications/
课程评论:没有评论
课程名称:实体框架:构建真实世界应用程序 课程概述: “实体框架:构建真实世界应用程序”课程通过两个主要项目提供了一种实践和动手的方式来理解实体框架(EF)。您将学习如何使用EF建模真实世界数据,执行CRUD操作,并使用LINQ和SQL查询。完成该课程后,您将熟练掌握使用Entity Framework在.NET中构建强大的应用程序,重点管理医院数据和员工列表。 第一部分:实体框架项目:医院管理系统 这一部分将指导您使用Entity Framework构建医院管理系统。您将学习如何有效地建模医院的数据结构和管理病人信息。 课程内容包括: 1. 项目介绍:解释医院管理系统项目的范围和目标。 2. 实体框架概述:介绍EF的基本概念及其如何简化C#数据库操作。 3. 病人类:定义代表病人数据的类,并使用EF映射到数据库。 4. 医院上下文:介绍医院上下文类,作为应用程序与数据库之间的桥梁。 5. 使用var:理解在C#中使用var进行隐式类型声明,尤其是在查询数据时。 6. 表结构变更:学习如何修改表结构及确保模型与数据库保持同步。 7. 保护重写方法:介绍在EF模型中重写保护方法以自定义行为。 8. 模式定义与表创建:探索如何基于DbContext配置创建表。 9. Fluent API:学习使用Fluent API以更高级的方式配置EF模型。 10. 查询语句:介绍使用LINQ或方法语法编写EF查询以检索和操作数据。 11. 数据持久化:总结如何在执行CRUD操作后将数据更改持久化到数据库中。 12. 病人详情概述:复习病人类及其属性,确保所有必需字段正确配置。 13. 修改列大小:学习在必要时调整数据库中列的大小,并相应地调整数据模型。 14. 设置文本长度:探索如何为模型中的字符串属性设置文本长度。 15. 药品ID:学习如何处理病人与药品之间的关系。 16. 数据注解:理解如何在模型中使用数据注解定义验证规则和模式信息。 17. CUD操作:专注于使用Entity Framework执行创建、更新和删除操作。 18. 完整程序:开始将代码整合进完整程序,运行医院管理系统作为实际应用。 19. 数据库初始化器:学习如何设置数据库初始化器,以便在创建时填充数据库初始数据。 20. 数据库模型构建:深入学习使用EF的代码优先方法构建数据库模型。 第二部分:实体框架项目:员工列表管理 在这一部分,您将开发一个员工列表管理系统,练习处理复杂数据模型和员工记录,包括CRUD操作和查询。 课程内容包括: 1. 项目介绍:介绍员工列表项目的目标,高效管理员工数据。 2. 实体框架回顾:复习EF功能及其如何简化应用程序与数据库的交互。 3. 图表创建:学习如何创建图表以管理如员工与部门等复杂关系。 4. 部门表创建:指导您设置部门表,以便与员工记录相关联。 5. 小修小补:修正小问题并学习在Visual Studio中开发的故障排除技巧。 6. Visual Studio讲解:查看构建Entity Framework应用程序时使用的Visual Studio工具和设置。 7. CRUD操作:介绍使用Entity Framework对员工记录执行CRUD操作。 8. 添加部门记录及验证成功:了解如何插入新部门记录并验证成功。 9. 员工记录插入:专注于将新员工记录插入数据库。 10. 验证员工和技能集插入成功:继续进行员工管理,学习插入技能集信息并确认成功。 此外,课程还覆盖了LINQ查询的基础、数据分组与查找、以及使用原生SQL进行更复杂查询的内容。 结论: 通过完成“实体框架:构建真实世界应用程序”课程,您将获得使用Entity Framework的动手经验,涵盖从基础CRUD操作到高级查询技术的各个方面。您将能够自信地使用Entity Framework构建和维护真实世界应用,如医院管理系统和员工追踪应用。
Introduction:The Entity Framework: Building Real-World Applications course provides a hands-on, practical approach to understanding Entity Framework (EF) through two major projects. You'll learn how to model real-world data using EF, perform CRUD operations, and work with LINQ and SQL queries. By the end of this course, you'll be proficient in using Entity Framework to build robust applications in.NET, with a focus on managing hospital data and employee lists.Section 1: Project on Entity Framework: Hospital Management SystemThis section will guide you through building a Hospital Management System using Entity Framework. You will learn how to model the hospital's data structure and manage patient information effectively.Lecture 1: Introduction to ProjectYou'll be introduced to the scope and objectives of the Hospital Management System project, including an overview of the hospital's data needs and how Entity Framework will help manage it.Lecture 2: Entity FrameworkThis lecture covers the basics of Entity Framework, including its core concepts and how it simplifies database operations with C#.Lecture 3: Patient ClassYou will learn how to define the Patient class, which represents patient data, and map it to the database using EF.Lecture 4: Hospital ContextThe HospitalContext class will be introduced, serving as the bridge between your application and the database, enabling CRUD operations.Lecture 5: Using VarUnderstanding how to use var in C# for implicit type declaration, especially when querying data using EF.Lecture 6: Table ChangeLearn how to modify table schemas, including adding or removing columns, and ensuring your model and database remain in sync.Lecture 7: Protected Override VoidThis lecture introduces overriding protected methods for customizing behavior in your EF models.Lecture 8: Schema Defining and TableYou'll explore schema definitions and how to create tables based on the DbContext configuration.Lecture 9: Fluent APILearn how to use Fluent API to configure your Entity Framework models in more advanced ways than data annotations allow.Lecture 10: StatementIntroduction to writing EF queries using LINQ or method syntax to retrieve and manipulate data.Lecture 11: Data DoneThis lecture summarizes how to persist data changes to the database after performing CRUD operations.Lecture 12: Overview of Patient DetailsYou'll review the details of the Patient class and its properties, making sure all required fields are properly configured.Lecture 13: Changing the Column SizeLearn how to modify the size of columns in your database when necessary, adjusting your data model accordingly.Lecture 14: Setting the Text SizeYou'll explore how to set the text length for string properties in your model.Lecture 15: Medicine IDLearn how to handle relationships between patients and medications in your system, using foreign keys and navigation properties.Lecture 16: Data AnnotationsYou'll understand how data annotations are used to define validation rules and schema information directly in your models.Lecture 17: CUD OperationsThis lecture focuses on performing Create, Update, and Delete operations with Entity Framework.Lecture 18: ProgramYou'll begin integrating your code into a complete program, running the Hospital Management System as a working application.Lecture 19: Hospital DB InitializerLearn how to set up your database initializer to seed your database with initial data upon creation.Lecture 20: DB Model BuilderA deeper dive into building your database model using EF's code-first approach.Section 2: Project on Entity Framework: Managing Employee ListIn this section, you'll develop a Managing Employee List system, allowing you to practice working with complex data models and managing employee records, including CRUD operations and querying.Lecture 21: Introduction to ProjectThis lecture introduces the goals of the Employee List project, focusing on managing employee data efficiently using EF.Lecture 22: Entity FrameworkA refresher on how Entity Framework works and how it simplifies database interaction for applications.Lecture 23: Graph TableLearn how to create graph tables for managing complex relationships like employees and their respective departments.Lecture 24: Department Table CreationThis lecture guides you through setting up the department table, which will relate to employee records.Lecture 25: Small Correction and VSFix minor issues and learn troubleshooting tips in Visual Studio during development.Lecture 26: VS Side ExplanationA look at the Visual Studio tools and settings used to build Entity Framework applications.Lecture 27: CRUD OperationsIntroduction to performing CRUD operations (Create, Read, Update, Delete) with Entity Framework on employee records.Lecture 28: Insert Into Dept and Dept SuccessLearn how to insert new records into the department table and validate that the insertion was successful.Lecture 29: EMP InsertThis lecture focuses on inserting new employee records into the database.Lecture 30: Emp Success and SkillSet InsertContinuing the employee management, you'll learn how to insert skillset information and confirm success.Lecture 31: Skillset Success To Delete SuccessFocus on deleting records from the database, such as removing an employee or skillset, while ensuring referential integrity.Lecture 32: Introduction to Query MechanismLearn the basics of querying data using LINQ and Entity Framework.Lecture 33: Select LINQ QueryGet hands-on experience with writing Select LINQ queries to retrieve employee data.Lecture 34: Select LINQ MethodYou'll learn the method syntax of LINQ to achieve the same result as the query syntax.Lecture 35-36: WHERE LINQ Query & MethodUnderstand how to filter data with Where queries using both query and method syntax in LINQ.Lecture 37-40: Working with Lists and OrderingLearn to work with lists of data, order results, and apply multiple sorting criteria using LINQ.Lecture 41-44: Grouping, Finding, and ProjectionsThese lectures cover how to group data, find specific records, and project results to custom formats.Lecture 45-46: First Default & Entity SQLLearn to retrieve the first record, handle default values, and start working with Entity SQL for more complex queries.Lecture 47-56: Advanced Querying & Raw SQLDelve into more advanced queries with Entity SQL and raw SQL commands to interact with the database directly.Conclusion:By completing Entity Framework: Building Real-World Applications, you will gain hands-on experience with Entity Framework, covering everything from basic CRUD operations to advanced query techniques. You'll be able to confidently build and maintain real-world applications using Entity Framework, such as hospital management systems and employee tracking applications.