This course builds on the foundation established in Course 1, focusing on data management, dependency injection, middleware, and error handling in ASP.NET Core applications. Learners will implement database operations with Entity Framework Core, configure middleware components, handle errors gracefully, and develop minimal APIs for lightweight web services.

推荐体验
推荐体验
中级
Learners should know C#, basic web development, OOP, databases, and be comfortable using Visual Studio Code.
推荐体验
推荐体验
中级
Learners should know C#, basic web development, OOP, databases, and be comfortable using Visual Studio Code.
您将获得的技能
要了解的详细信息

添加到您的领英档案
November 2025
18 项作业
了解顶级公司的员工如何掌握热门技能

积累 Mobile and Web Development 领域的专业知识
- 向行业专家学习新概念
- 获得对主题或工具的基础理解
- 通过实践项目培养工作相关技能
- 通过 Microsoft 获得可共享的职业证书

该课程共有5个模块
In this module, you will learn to build maintainable and scalable ASP.NET Core applications through proper dependency injection and configuration management techniques. You'll explore how dependency injection promotes loose coupling and testability by understanding service lifetimes and registration patterns within ASP.NET Core's built-in container. Through hands-on practice, you'll implement the Options pattern to create strongly-typed configuration classes, work with multiple configuration sources including JSON files, environment variables, and secure storage options like Azure Key Vault. You'll master environment-specific configuration strategies that enable your applications to seamlessly transition between development, staging, and production environments without code changes. By implementing comprehensive configuration validation and secret management practices, you'll learn to prevent common deployment failures and security vulnerabilities. By the end of this module, you'll be able to architect applications that are truly environment-agnostic, maintainable at enterprise scale, and follow industry best practices for configuration security and dependency management.
涵盖的内容
10个视频6篇阅读材料4个作业3个非评分实验室1个插件
10个视频• 总计56分钟
- Concept of Dependency Injection• 5分钟
- Implementing Dependency Injection in ASP.NET Core• 11分钟
- Testing with Dependency Injection• 5分钟
- Routing, Attribute Routing, and Dependency Injection• 5分钟
- Why Configuration Management Matters• 3分钟
- How to Implement Configuration and Options Pattern – Part 1• 5分钟
- How to Implement Configuration and Options Pattern – Part 2• 6分钟
- Why Environment-Specific Configuration Is Critical• 3分钟
- How to Configure Multi–Environment Applications – Part 1• 6分钟
- How to Configure Multi-Environment Applications – Part 2• 6分钟
6篇阅读材料• 总计140分钟
- Dependency Injection in ASP.NET Core• 30分钟
- You Try It! Routing, Attribute Routing, and Dependency Injection - Answer Key• 10分钟
- Course Syllabus• 10分钟
- What You Need to Know: ASP.NET Core Configuration System• 30分钟
- Advanced Configuration Techniques• 30分钟
- Environment Management in ASP.NET Core• 30分钟
4个作业• 总计80分钟
- Graded Quiz: Dependency Injection and Configuration• 30分钟
- Practice Quiz: Dependency Injection in ASP.NET Core• 20分钟
- Practice Quiz: Configuration and Options Pattern• 15分钟
- Practice Quiz: Working with Multiple Environments• 15分钟
3个非评分实验室• 总计100分钟
- You Try It! Routing, Attribute Routing, and Dependency Injection• 60分钟
- Build a Configurable Weather Service• 20分钟
- Set Up Multi-Environment Task Management Configuration• 20分钟
1个插件• 总计15分钟
- Guided Lab: Routing, Attribute Routing, and Dependency Injection• 15分钟
In this module, you will learn to control and customize the flow of HTTP requests through your ASP.NET Core applications using middleware components and the request pipeline. You'll explore how middleware works as the foundation of ASP.NET Core's architecture, understanding how each component in the pipeline processes requests and responses in a specific order. Through hands-on practice, you'll configure built-in middleware for common tasks like authentication, static file serving, and error handling, then progress to creating custom middleware components that address specific application requirements. You'll implement request logging, response transformation, and throttling middleware while learning proper error handling and dependency injection patterns. You'll master middleware ordering principles, understand performance implications, and learn to debug pipeline issues effectively. By the end of this module, you'll be able to design and implement sophisticated request processing pipelines that handle cross-cutting concerns cleanly, maintain security and performance standards, and provide the foundation for scalable, maintainable web applications.
涵盖的内容
8个视频5篇阅读材料4个作业2个非评分实验室1个插件
8个视频• 总计43分钟
- Introduction to Middleware and OpenAPI• 2分钟
- Concept of Middleware• 4分钟
- Middleware Pipeline• 4分钟
- Built-in Middleware Components• 5分钟
- Custom Middleware• 14分钟
- Implementing Middleware Components• 5分钟
- Why Custom Middleware Is Essential for Modern Applications• 3分钟
- How to Build and Register Custom Middleware Components• 7分钟
5篇阅读材料• 总计110分钟
- Introduction to Middleware in ASP.NET Core• 30分钟
- Built-in Middleware Components• 30分钟
- Custom Middleware• 10分钟
- You Try It! Implementing Middleware Components - Answer Key• 10分钟
- What You Need to Know - Custom Middleware Development• 30分钟
4个作业• 总计75分钟
- Middleware and Request Pipeline• 30分钟
- Practice Quiz: Introduction to Middleware in ASP.NET Core• 15分钟
- Practice Quiz: Common Middleware Components• 15分钟
- Practice Quiz: Creating Custom Middleware• 15分钟
2个非评分实验室• 总计80分钟
- You Try It! Implementing Middleware Components• 60分钟
- Build Custom Request Logging Middleware• 20分钟
1个插件• 总计15分钟
- Guided Lab: Implementing Middleware Components• 15分钟
In this module, you will learn to build robust ASP.NET Core applications through comprehensive error handling and effective debugging strategies. You'll implement global exception handling mechanisms that capture and process errors consistently across your entire application, preventing unhandled exceptions from reaching end users. Through hands-on practice, you'll configure structured logging systems that capture meaningful application events and errors for analysis and monitoring. You'll master debugging techniques using Visual Studio Code's integrated tools, learning to set breakpoints, inspect variables, and trace execution flow to identify and resolve complex issues efficiently. You'll also create user-friendly error responses for API consumers that provide helpful information without exposing sensitive system details. By the end of this module, you'll be able to build applications that gracefully handle unexpected situations, provide clear diagnostic information for troubleshooting, and maintain professional user experiences even when errors occur.
涵盖的内容
7个视频2篇阅读材料3个作业1个非评分实验室1个插件
7个视频• 总计54分钟
- Error Handling in ASP.NET Core• 7分钟
- Logging Best Practices• 6分钟
- Implementing Error Handling and Logging• 7分钟
- ASP.NET Core Logging Providers & Framework• 4分钟
- Identifying Bugs with Copilot• 11分钟
- Copilot-Assisted Debugging Techniques• 6分钟
- Advanced Debugging with Copilot• 13分钟
2篇阅读材料• 总计20分钟
- Error Handling and Logging• 10分钟
- You Try It! Implementing Error Handling and Logging - Answer Key• 10分钟
3个作业• 总计75分钟
- Error Handling and Debugging• 30分钟
- Practice Quiz: Error Handling and Logging• 15分钟
- Activity 2: Debugging API Code with Copilot• 30分钟
1个非评分实验室• 总计60分钟
- You Try It! Implementing Error Handling and Logging• 60分钟
1个插件• 总计15分钟
- Guided Lab: Implementing Error Handling and Logging• 15分钟
In this module, you will learn to build data-driven ASP.NET Core applications using Entity Framework Core as your object-relational mapping (ORM) solution. You'll explore how Entity Framework Core simplifies database operations while maintaining type safety and performance, understanding the architecture and components that make it the preferred data access technology for .NET applications. Through hands-on practice, you'll design and create comprehensive data models with proper entity relationships, implement the repository pattern for clean architecture, and build complete CRUD operations within a well-structured service layer. You'll master database migrations for schema management, implement robust data validation strategies, and create comprehensive unit tests that ensure your data access layer performs reliably. You'll learn to configure complex relationships including one-to-many, many-to-many, and owned entity types while optimizing for both query performance and data integrity. By the end of this module, you'll be able to architect and implement enterprise-grade data access solutions that support complex business requirements while maintaining clean separation of concerns and comprehensive test coverage.
涵盖的内容
14个视频6篇阅读材料6个作业4个非评分实验室1个插件
14个视频• 总计78分钟
- Why Entity Framework Core Matters• 3分钟
- How to Set Up Entity Framework Core• 13分钟
- Why Proper Model Design Matters• 3分钟
- How to Create and Configure Entity Models• 10分钟
- Why CRUD Operations Are the Foundation of Every Application• 4分钟
- How to Implement CRUD Operations with Service Layer – Part 1• 6分钟
- How to Implement CRUD Operations with Service Layer – Part 2• 5分钟
- State Management• 4分钟
- Techniques for Managing State• 4分钟
- Best Practices for State Management• 4分钟
- Building Forms in Blazor• 6分钟
- Implementing Form Validation• 5分钟
- Best Practices for Form Handling• 6分钟
- Implementing State Management and Form Handling/Validation• 6分钟
6篇阅读材料• 总计120分钟
- What You Need to Know: Entity Framework Core Fundamentals• 30分钟
- What You Need to Know: Entity Framework Core Models and Relationships• 30分钟
- What You Need to Know: CRUD Operations and Service Layer Architecture• 30分钟
- Managing State in Blazor Applications• 10分钟
- Implementing Form Validation• 10分钟
- You Try It! Implementing State Management and Form Handling/Validation - Answer Key• 10分钟
6个作业• 总计115分钟
- Data Access with Entity Framework Core• 30分钟
- Practice Quiz: Introduction to Entity Framework Core• 15分钟
- Practice Quiz: Creating and Scaffolding Models• 15分钟
- Practice Quiz: CRUD Operations and Service Layer Architecture• 15分钟
- Practice Quiz: Managing State in Blazor Applications• 20分钟
- Practice Quiz: Best Practices for Form Handling and Validation in Blazor• 20分钟
4个非评分实验室• 总计120分钟
- Set Up Entity Framework Core for a Library Management System• 20分钟
- Design a Domain Model for E-commerce Core• 20分钟
- Build Complete Product CRUD Service with Unit Testing• 20分钟
- You Try It! Implementing State Management and Form Handling/Validation• 60分钟
1个插件• 总计15分钟
- Guided Lab: Implementing State Management and Form Handling/Validation• 15分钟
In this hands-on project, you will build a lightweight task management API using ASP.NET Core. The project focuses on foundational concepts, including dependency injection, minimal APIs, basic data modeling, and simple middleware.
涵盖的内容
1篇阅读材料1个作业1个非评分实验室
1篇阅读材料• 总计10分钟
- Hands-On Course Project: Task Management API- Solutions• 10分钟
1个作业• 总计90分钟
- Hands-On Course Project: Task Management API• 90分钟
1个非评分实验室• 总计90分钟
- Hands-On Course Project: Task Management API• 90分钟
获得职业证书
将此证书添加到您的 LinkedIn 个人资料、简历或履历中。在社交媒体和绩效考核中分享。
位教师

提供方

提供方

Our goal at Microsoft is to empower every individual and organization on the planet to achieve more. In this next revolution of digital transformation, growth is being driven by technology. Our integrated cloud approach creates an unmatched platform for digital transformation. We address the real-world needs of customers by seamlessly integrating Microsoft 365, Dynamics 365, LinkedIn, GitHub, Microsoft Power Platform, and Azure to unlock business value for every organization—from large enterprises to family-run businesses. The backbone and foundation of this is Azure.
从 Mobile and Web Development 浏览更多内容
人们为什么选择 Coursera 来帮助自己实现职业发展

Felipe M.

Jennifer J.

Larry W.

Chaitanya A.
常见问题
To access the course materials, assignments and to earn a Certificate, you will need to purchase the Certificate experience when you enroll in a course. You can try a Free Trial instead, or apply for Financial Aid. The course may offer 'Full Course, No Certificate' instead. This option lets you see all course materials, submit required assessments, and get a final grade. This also means that you will not be able to purchase a Certificate experience.
When you enroll in the course, you get access to all of the courses in the Certificate, and you earn a certificate when you complete the work. Your electronic Certificate will be added to your Accomplishments page - from there, you can print your Certificate or add it to your LinkedIn profile.
更多问题
提供助学金,





