.NET 9 for Web Developers: From console apps to production-ready web APIs and desktop clients using ASP.NET Core, Entity Framework Core, and MVVM
For any .NET developer or C# programmer looking to build reliable, modern web applications using the latest advancements in the .NET platform, this book is an absolute must-have. Through practical scenarios, this book provides clear, step-by-step guidance, covering everything from the fundamentals of C# and .NET 9 to robust backend services and responsive desktop clients.
As you read, you will learn to set up development environment on Windows, build console applications, and advance to ASP.NET Core Web APIs. The book uses real-world examples to illuminate every concept, so you can learn debugging, troubleshooting, and the principles behind well-structured code. You will learn to work with SQL Server Express and integrate database operations seamlessly using Entity Framework Core. It also thoroughly covers the design of RESTful web APIs, dependency injection, and decoupled architectures, as well as the essentials of MVVM and WPF for creating user-friendly desktop clients. With each step, you will connect these clients to your Web API, manage data exchanges, handle errors, and implement essential features such as logging and health checks.
Each chapter is designed to develop practical skills, with each topic closely linked to professional software development practices. You won't find any shortcuts or hype here. It's just practical knowledge and tools to help you develop, deploy, and maintain modern .NET web applications with confidence.
Key Features
- Explore the structure, build and the execution of .NET 9 applications using SDK, CLI, and runtime model.
- Translate problem statements into working C# logic using console apps and control flow.
- Acquire debugging skills using breakpoints, call stacks, logging, and exception analysis.
- Design clean ASP.NET Core Web APIs with routing, controllers, status codes, and validation.
- Workaround dependency injection and interfaces.
- Work directly with SQL Server and learn to enforce data integrity.
- Use Entity Framework Core for mappings, migrations, querying, and change tracking.
- Built backend with clear separation between controllers, services, and repositories.
- Implement WPF MVVM client with a Web API and staying synchronized with server state.
- Publish, configure, monitor, and operate .NET applications in real environments.
Table of Content
- .NET 9, Tools and Sample App
- C# Fundamentals
- Debugging and Troubleshooting .NET 9 Code
- Working with Existing .NET Applications
- Revisiting ASP.NET Core and HTTP Basics
- Routing and Web API Controllers
- Up and Running with SQL Server Express
- Working with Entity Framework Core
- Building Backend with ASP.NET Core and EF Core
- Decoupled Code with Interfaces and Dependency Injection
- MVVM and WPF Desktop Client Basics
- Connecting WPF Client to Web API
- Deployment, Configuration, and Maintenance