Building End-To-End Apps with C# 11 and .Net 7: The Complete Guide to Building Web, Desktop, and Mob : The Complete Guide to Building Web, Desktop, and Mobile Apps
معرفی کتاب «Building End-To-End Apps with C# 11 and .Net 7: The Complete Guide to Building Web, Desktop, and Mob : The Complete Guide to Building Web, Desktop, and Mobile Apps» نوشتهٔ Gupta, Arun;، منتشرشده توسط نشر BPB Publications در سال 2023. این کتاب در فرمت epub، زبان انگلیسی ارائه شده است.
Learn how to use C# 11 to build apps for any platform, from the ground up Key Features ● Discover the latest C# 11 features and improvements. ● Master C# application development in Visual Studio 2022 with engaging and relatable examples. ● Learn how to test and deploy C# applications with ease. Description C# 11 is the latest version of C#, a popular programming language for building cloud, web, and desktop applications. It is a powerful and versatile language that can create a wide range of applications, from simple command-line tools to complex enterprise systems. This book teaches you how to use C# 11, the latest version of C#, to build real-world applications. It introduces the new language features in C# 11, such as global using directives, file-scoped namespaces, and top-level statements. Then, it shows you how to use these features to write code that is more concise and expressive. Next, the book teaches you how to build various applications using C# 11, including web apps, mobile apps, desktop apps, and machine learning models. You'll learn to use ASP.NET Core, gRPC, Blazor, Angular, WPF, WinUI 3, .NET MAUI, and ML.NET. Throughout the book, you'll also learn the best practices for writing clean, efficient, and maintainable codes. By the end of the book, you will have a deep understanding of C# 11 and how to use it to build a wide range of cloud, web, and desktop applications. What you will learn ● Get an overview of the new language enhancements in C# 11. ● Create simple applications from start to finish using a built-in project template step-by-step. ● Learn related concepts, and be aware of the nuances, pitfalls, and workarounds while creating each application. ● Reflect on the testing and deployment strategies for each application type. ● Challenge yourself to think deeper and learn more with end-of-chapter exercises. Who this book is for This book is for experienced C# programmers who want to learn about the latest enhancements to the language, project types, tools, technologies, and design approaches. The book assumes readers are familiar with C# and can build applications using the .NET Platform in Visual Studio. Cover Title Page Copyright Page Dedication Page Foreword About the Author About the Reviewer Acknowledgement Preface Disclaimer Table of Contents 1. New Features in C# 11 Introduction Structure Objectives Auto-default struct Extended nameof scope File-scoped types Generic attributes Generic math List patterns Microsecond and Nanosecond (.NET 7) Newlines in string interpolation expressions Pattern match Span on a constant string Raw string literals Regex source generation (.NET 7) Required members Simplified ordering with System.LINQ (.NET 7) Stream reading - ReadExactly and ReadAtLeast (.NET 7) Tar APIs (.NET 7) Type converters - DateOnly, TimeOnly, Int128, UInt128, and Half (.NET 7) UTF-8 string literals Warning wave 7 Conclusion Points to remember Exercises References 2. ASP.NET Core Web App Introduction Structure Objectives Pre-requisites What is ASP.NET Core? Getting started with Razor Pages web app Structure of the (default) Razor Pages app Getting started with MVC Web App Structure of the (default) MVC app MVC vs Razor Pages web app Developing end-to-end Razor Pages application Creating web app Getting started Create models Scaffolding – Book pages Scaffolding – Publisher pages Creating a database using EF Core migration Run and verify Clean-up Seeding UI refinements Update Publisher model Working with related data Filtering records Refactor to use Repository Pattern Unit testing Functional testing Deployment Conclusion Points to remember Exercises References 3. ASP.NET Core Web API Introduction Structure Objectives Overview of Web API HTTP Web API Web apps vs. Web API Pre-requisites Getting started with ASP.NET Core Web API Structure of the (default) Web API project Minimal API with a simplified hosting model Controller approach vs. Minimal API approach Developing Web API Creating Web API project Getting started Create models Scaffolding – Books API Controller Create database using EF Core migration Run and verify Seeding JWT authentication and authorization Consuming API Unit testing Deployment Conclusion Points to remember Exercises References 4. gRPC Service Introduction Structure Objectives Overview of gRPC What is gRPC? How does gRPC work? Features of gRPC gRPC versus other service models Advantages of gRPC Disadvantages of gRPC gRPC use cases Pre-requisites Getting started with ASP.NET Core gRPC Service Structure of the (default) gRPC Service project Consuming the gRPC Greeter Service Test Greeter Service using Postman Enable browser access through JSON Transcoding Enable Swagger documentation Developing gRPC Service Creating gRPC Service and the Client Getting started Create proto file Include the sample data set Install and configure CsvHelper NuGet package Create the EmployeesDataService Create the GrpcDownloadClient Unit testing Deployment Conclusion Points to remember Exercises References 5. Blazor WebAssembly Introduction Structure Objectives Introduction to Blazor Types of Blazor Apps Blazor Server Blazor WebAssembly Blazor WebAssembly Hosted Blazor WebAssembly Progressive Web App (PWA) Blazor Hybrid Pre-requisites Structure of the (default) Blazor WebAssembly project Developing Blazor WebAssembly (Hosted) App Creating Blazor WebAssembly client and server Getting started with Blazor WebAssembly App Create the Index page Create variation one – You Guess Create variation two – computer guesses Save Game Log Create UI to view Game Log Create reusable Razor Class library Unit testing Unit-testing using bUnit End-to-end testing using Playwright .NET Deployment Conclusion Points to remember Exercises References 6. SPA with Angular Introduction Structure Objectives Introduction to Single-Page Application Pre-requisites Getting started with SPA using Angular Structure of (default) ASP.NET Core Angular Project Working of SPA template application Developing Angular CRUD App Creating the Angular app Getting started Create models Scaffolding – API controller Creating database using EF Core migration Add support for Swagger documentation Seeding Create Angular components and services Book List Page Book Detail Page Book Edit page Book Delete page Unit testing Deployment Conclusion Points to remember Exercises References 7. WPF Application Introduction Structure Objectives Desktop applications WPF Pre-requisites Getting started with WPF Application Structure of the (default) WPF Application project Custom Pizza Order form Developing real-world WPF app Creating the Sudoku Buddy WPF application Getting started Creating the Sudoku UI Implementing MVVM to show numbers What is Model-View-ViewModel? Implementing MVVM Show candidates or pencil marks Allowing user to type digit Highlighting incorrect input Unit testing Deployment Conclusion Points to remember Exercises References 8. WinUI 3 Introduction Structure Objectives WinUI 3 Pre-requisites Getting started with WinUI 3 app Structure of the (default) WinUI 3 Application project Developing real-world WinUI App Creating the Image Navigator WinUI app Getting started Add folder browsing capability to Main Window Creating Image View Model class Creating Image List page Creating Image Detail page Unit testing Deployment Conclusion Points to remember Exercises References 9. .NET MAUI Introduction Structure Objectives Evolution of mobile application development .NET MAUI Pre-requisites Getting started with .NET MAUI app Structure of the (default) .NET MAUI App project Creating .NET MAUI Blazor Hybrid Application Developing real-world .NET MAUI App Recap – Sudoku Buddy WPF Application WPF vs. .NET MAUI Migrating Sudoku Buddy from WPF to .NET MAUI Getting started Copy files from WPF application Create Views Running with Android Simulator Unit testing Deployment Conclusion Points to remember Exercises References 10. ML.NET Introduction Structure Objectives Overview of machine learning ML.NET Pre-requisites Getting started with ML.NET Machine learning process Binary classification using ML.NET API Binary classification Sentiment dataset Creating the program Regression analysis using Model Builder Model Builder Regression analysis Insurance dataset Creating the program Anomaly detection in financial dataset Anomaly detection Synthetic financial dataset for fraud detection Principal Component Analysis algorithm Creating the program Data preparation Model training Prediction Unit testing Create unit test Deployment Deployment considerations Ways to deploy Thread safety of Prediction Engine Conclusion Points to remember Exercises References Index What you will learn● Get an overview of the new language enhancements in C# 11.● Create simple applications from start to finish using a built-in project template step-by-step.● Learn related concepts, and be aware of the nuances, pitfalls, and workarounds while creating each application.● Reflect on the testing and deployment strategies for each application type.● Challenge yourself to think deeper and learn more with end-of-chapter exercises.Who this book is forThis book is for experienced C# programmers who want to learn about the latest enhancements to the language, project types, tools, technologies, and design approaches. The book assumes readers are familiar with C# and can build applications using the .NET Platform in Visual Studio.Table of Contents1. New Features in C# 112. ASP.NET Core Web App3. ASP.NET Core Web API4. gRPC Service5. Blazor WebAssembly6. SPA with Angular7. WPF Application8. WinUI 39. .NET MAUI10. ML.NET
دانلود کتاب Building End-To-End Apps with C# 11 and .Net 7: The Complete Guide to Building Web, Desktop, and Mob : The Complete Guide to Building Web, Desktop, and Mobile Apps