C# 11 and .NET 7 – Modern Cross-Platform Development Fundamentals: Start building websites and services with ASP.NET Core 7, Blazor, and EF Core 7
, Seventh Edition
Explore the newest additions to C# 11, the .NET 7 class libraries, and Entity Framework Core 7
Create professional websites and services with ASP.NET Core 7 and Blazor
Build your confidence with step-by-step code examples and tips for best practices
Description
Extensively revised to accommodate the latest features that come with C# 11 and .NET 7, this latest edition of our guide will get you coding in C# with confidence.
You’ll learn object-oriented programming, writing, testing, and debugging functions, implementing interfaces, and inheriting classes. Next, you’ll take on .NET APIs for performing tasks like managing and querying data, working with the filesystem, and serialization. As you progress, you’ll also explore examples of cross-platform projects you can build and deploy, such as websites and services using ASP.NET Core.
Instead of distracting you with unnecessary graphical user interface code, the first eleven chapters will teach you about C# language constructs and many of the .NET libraries through simple console applications. Having mastered the basics, you’ll then start building websites, web services, and browser apps.
By the end of this book, you’ll be able to create rich web experiences and have a solid grasp of object-oriented programming that you can build upon.
Who is this book for?
This book is primarily for beginners, but intermediate-level C# and .NET programmers who have worked with C# in the past and want to catch up with the changes made in the past few years will also find plenty of useful information in it. Prior exposure to C# or .NET is not a prerequisite, but you should have a general understanding of programming before you jump in.
If you already have some C# and .NET skills and want to focus on developing apps, we recommend that you pick up Mark’s other .NET book, Apps and Services with .NET 7, instead.
What you will learn
Build rich web experiences using Blazor, Razor Pages, the Model-View-Controller (MVC) pattern, and other features of ASP.NET Core
Write, test, and debug functions
Query and manipulate data using LINQ
Integrate and update databases in your apps using Entity Framework Core models
Build and consume powerful services using the latest technologies, including Web API and Minimal API
For .NET 6 developers:
C# 11 can be used with .NET 6, including features like raw string literals
EF Core 7 targets .NET 6, so you can benefit from its new features like ExecuteUpdate and ExecuteDelete for more efficient data modifications
Each and Every Chapter Contains Tons and Tons On Knowledge.
Subscriber review
Troy MartinNov 08, 2022
5
I've been a self-taught programmer for the last 5+ years and have read/skimmed countless programming books in my time. I'm well-versed in several languages and recently decided to become more proficient with C# as well as getting caught up to "modern" C# (I learned C# when it was version 7).Mark Price's book is nothing short of a god-send for me. This has been one of the best programming books I've ever read and most certainly the best for the language. While this may not be great for the absolute newbie programmer (it's a very concise book), anyone with a little bit of skill in any language should find themselves right at home. Mark does a wonderful job completely covering not only the fundamentals of the language but also diving into practical applications along with website development and services like ASP.NET, EF Core and more!If you've ever wanted to learn C# (or just programming in general), this is the book I would point anyone to. Mark is an expert in the field and the Discord server for the book has been its own treat with very welcoming and friendly programmers to assist / discuss topics in the book. After finishing this book, you will have all the knowledge you need to develop your own websites and applications with the cross-platform nature that modern C# .NET affords. Get up to speed with the newest C# language features and become confident in your abilities with this book!Note that there is a follow-up book to this one, Apps and Services with .NET 7. I HIGHLY recommend buying the two as a set as the follow-up book directly builds off of what was learned in the 'first book' and includes a recipe-book-like approach to various real-world projects.
Amazon Verified review
Amazon CustomerJul 28, 2023
5
I liked the option of getting a PDF version of the book. I liked how rationally layed out the content is and how very complete it is. A really great job!
Amazon Verified review
William SennNov 23, 2022
5
The book is exceptional in that it concentrates on the language and not the IDE. The examples and projects in the first 11 chapters are written as Console applications! This gives the author great flexibility to concentrate on language without concern for UI elements. The vast majority of C# texts out there are either Language References or Windows Form guides, not this one. It is very pragmatically focused. The author starts by giving the reader instructions on installing VS2022 for Windows (works for VS2019 and VS for Mac) as well, VS Code which works on Windows, Linux, Mac, and the SDKs, which also work on Windows, Mac, and Linux. He then delves into how to create multiple projects with the tools. In addition, he walks the user through installing and using .NET Interactive Notebooks (now Polyglot Notebooks) which are basically Jupyter for C# in VS Code - amazing first chapter. With this foundation, the reader is poised to jump into C# and .NET, from C# 8 and.NET Core 3.1 to C# 11 and .NET 7 using nothing more than a command line and text editor, should the reader desire to code that way.After the introductory setup chapter, the author jumps into the language for the next 10 chapters. The last 6 chapters cover the basics of web apps and services... just enough to create working applications and services. The author covers these topics in much greater detail in his other book "Apps and Services with .NET" which, if I have the opportunity to read soon, I very much look forward to.Are there weaknesses? Hmm... sure, but I consider most of what I perceive as weaknesses to be design choices and chalk them up to the author's preferences and style. This is the seventh edition of the text and the author has paid attention to the details.One thing that's noticeable and much appreciated by me is that the author leverages new features of the language expertly and adroitly while calling out there use. This is substantially different from those authors who cut new editions with little effort to embrace what's new.Great book and very helpful approach for readers wanting to learn HOW to program in C# on their ACTUAL computers!
Amazon Verified review
Rufus ArchibaldDec 02, 2022
5
The material covered was thorough and concise. The examples were good, code was clean and illustrated the topic clearly. Chapters were organized well and in a good sequence to advance the narrative in a logical way. This is a great book to learn from and I highly recommend it for both beginners and seasoned professionals to have around as reference material. It will certainly remain in my library for some time to come.
Mark J. Price is a Microsoft Specialist: Programming in C# and Architecting Microsoft Azure Solutions, with over 20 years' experience. Since 1993, he has passed more than 80 Microsoft programming exams and specializes in preparing others to pass them. Between 2001 and 2003, Mark was employed to write official courseware for Microsoft in Redmond, USA. His team wrote the first training courses for C# while it was still an early alpha version. While with Microsoft, he taught "train-the-trainer" classes to get other MCTs up-to-speed on C# and .NET. Mark holds a Computer Science BSc. Hons. Degree.
Economy: Delivery to most addresses in the US within 10-15 business days
Premium: Trackable Delivery to most addresses in the US within 3-8 business days
UK:
Economy: Delivery to most addresses in the U.K. within 7-9 business days. Shipments are not trackable
Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days! Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands
EU:
Premium: Trackable delivery to most EU destinations within 4-9 business days.
Australia:
Economy: Can deliver to P. O. Boxes and private residences. Trackable service with delivery to addresses in Australia only. Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro Delivery time is up to 15 business days for remote areas of WA, NT & QLD.
Premium: Delivery to addresses in Australia only Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.
India:
Premium: Delivery to most Indian addresses within 5-6 business days
Rest of the World:
Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days
Asia:
Premium: Delivery to most Asian addresses within 5-9 business days
Disclaimer: All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.
Unfortunately, due to several restrictions, we are unable to ship to the following countries:
Afghanistan
American Samoa
Belarus
Brunei Darussalam
Central African Republic
The Democratic Republic of Congo
Eritrea
Guinea-bissau
Iran
Lebanon
Libiya Arab Jamahriya
Somalia
Sudan
Russian Federation
Syrian Arab Republic
Ukraine
Venezuela
What is custom duty/charge?
Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.
Do I have to pay customs charges for the print book order?
The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.
A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.
How do I know my custom duty charges?
The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.
For example:
If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order?
Cancellation Policy for Published Printed Books:
You can cancel any order within 1 hour of placing the order. Simply contact [email protected] with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at [email protected] using the returns and refund process.
Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.
What is your returns and refunds policy?
Return Policy:
We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on [email protected] with the order number and issue details as explained below:
If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on [email protected] within one hour of placing the order and we will replace/refund you the item cost.
Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on [email protected] who will be able to resolve this issue for you.
You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.
On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on [email protected] within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.
What tax is charged?
Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.
What payment methods can I use?
You can pay with the following card types:
Visa Debit
Visa Credit
MasterCard
PayPal
What is the delivery time and cost of print books?
Shipping Details
USA:
'
Economy: Delivery to most addresses in the US within 10-15 business days
Premium: Trackable Delivery to most addresses in the US within 3-8 business days
UK:
Economy: Delivery to most addresses in the U.K. within 7-9 business days. Shipments are not trackable
Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days! Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands
EU:
Premium: Trackable delivery to most EU destinations within 4-9 business days.
Australia:
Economy: Can deliver to P. O. Boxes and private residences. Trackable service with delivery to addresses in Australia only. Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro Delivery time is up to 15 business days for remote areas of WA, NT & QLD.
Premium: Delivery to addresses in Australia only Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.
India:
Premium: Delivery to most Indian addresses within 5-6 business days
Rest of the World:
Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days
Asia:
Premium: Delivery to most Asian addresses within 5-9 business days
Disclaimer: All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.
Unfortunately, due to several restrictions, we are unable to ship to the following countries: