C# 8.0 and .NET Core 3.0 – Modern Cross-Platform Development
eBook - ePub

C# 8.0 and .NET Core 3.0 – Modern Cross-Platform Development

Build applications with C#, .NET Core, Entity Framework Core, ASP.NET Core, and ML.NET using Visual Studio Code, 4th Edition

Mark J. Price

Condividi libro
  1. 818 pagine
  2. English
  3. ePUB (disponibile sull'app)
  4. Disponibile su iOS e Android
eBook - ePub

C# 8.0 and .NET Core 3.0 – Modern Cross-Platform Development

Build applications with C#, .NET Core, Entity Framework Core, ASP.NET Core, and ML.NET using Visual Studio Code, 4th Edition

Mark J. Price

Dettagli del libro
Anteprima del libro
Indice dei contenuti
Citazioni

Informazioni sul libro

Publisher's Note: Microsoft stops supporting.NET Core 3.1 in December 2022. The newer 7th edition of this book is available that covers.NET 7 (end-of-life May 2024) or.NET 6 (end-of-life November 2024), with C# 11 and EF Core 7.

Key Features

  • Build modern, cross-platform applications with.NET Core 3.0
  • Get up to speed with C#, and up to date with all the latest features of C# 8.0
  • Start creating professional web applications with ASP.NET Core 3.0

Book Description

In C# 8.0 and.NET Core 3.0 – Modern Cross-Platform Development, Fourth Edition, expert teacher Mark J. Price gives you everything you need to start programming C# applications.

This latest edition uses the popular Visual Studio Code editor to work across all major operating systems. It is fully updated and expanded with new chapters on Content Management Systems (CMS) and machine learning with ML.NET.

The book covers all the topics you need. Part 1 teaches the fundamentals of C#, including object-oriented programming, and new C# 8.0 features such as nullable reference types, simplified switch pattern matching, and default interface methods. Part 2 covers the.NET Standard APIs, such as managing and querying data, monitoring and improving performance, working with the filesystem, async streams, serialization, and encryption. Part 3 provides examples of cross-platform applications you can build and deploy, such as web apps using ASP.NET Core or mobile apps using Xamarin.Forms. The book introduces three technologies for building Windows desktop applications including Windows Forms, Windows Presentation Foundation (WPF), and Universal Windows Platform (UWP) apps, as well as web applications, web services, and mobile apps.

What you will learn

  • Build cross-platform applications for Windows, macOS, Linux, iOS, and Android
  • Explore application development with C# 8.0 and.NET Core 3.0
  • Explore ASP.NET Core 3.0 and create professional web applications
  • Learn object-oriented programming and C# multitasking
  • Query and manipulate data using LINQ
  • Use Entity Framework Core and work with relational databases
  • Discover Windows app development using the Universal Windows Platform and XAML
  • Build mobile applications for iOS and Android using Xamarin.Forms

Who this book is for

Readers with some prior programming experience or with a science, technology, engineering, or mathematics (STEM) background, who want to gain a solid foundation with C# 8.0 and.NET Core 3.0.

Domande frequenti

Come faccio ad annullare l'abbonamento?
È semplicissimo: basta accedere alla sezione Account nelle Impostazioni e cliccare su "Annulla abbonamento". Dopo la cancellazione, l'abbonamento rimarrà attivo per il periodo rimanente già pagato. Per maggiori informazioni, clicca qui
È possibile scaricare libri? Se sì, come?
Al momento è possibile scaricare tramite l'app tutti i nostri libri ePub mobile-friendly. Anche la maggior parte dei nostri PDF è scaricabile e stiamo lavorando per rendere disponibile quanto prima il download di tutti gli altri file. Per maggiori informazioni, clicca qui
Che differenza c'è tra i piani?
Entrambi i piani ti danno accesso illimitato alla libreria e a tutte le funzionalità di Perlego. Le uniche differenze sono il prezzo e il periodo di abbonamento: con il piano annuale risparmierai circa il 30% rispetto a 12 rate con quello mensile.
Cos'è Perlego?
Perlego è un servizio di abbonamento a testi accademici, che ti permette di accedere a un'intera libreria online a un prezzo inferiore rispetto a quello che pagheresti per acquistare un singolo libro al mese. Con oltre 1 milione di testi suddivisi in più di 1.000 categorie, troverai sicuramente ciò che fa per te! Per maggiori informazioni, clicca qui.
Perlego supporta la sintesi vocale?
Cerca l'icona Sintesi vocale nel prossimo libro che leggerai per verificare se è possibile riprodurre l'audio. Questo strumento permette di leggere il testo a voce alta, evidenziandolo man mano che la lettura procede. Puoi aumentare o diminuire la velocità della sintesi vocale, oppure sospendere la riproduzione. Per maggiori informazioni, clicca qui.
C# 8.0 and .NET Core 3.0 – Modern Cross-Platform Development è disponibile online in formato PDF/ePub?
Sì, puoi accedere a C# 8.0 and .NET Core 3.0 – Modern Cross-Platform Development di Mark J. Price in formato PDF e/o ePub, così come ad altri libri molto apprezzati nelle sezioni relative a Computer Science e Programming in C#. Scopri oltre 1 milione di libri disponibili nel nostro catalogo.

Informazioni

Anno
2019
ISBN
9781788471572
Edizione
4

Chapter 17

Building Websites Using a Content Management System

This chapter is about building websites using a modern cross-platform Content Management System (CMS).
There are many choices of CMS for most web development platforms. For cross-platform C# and .NET web developers, the best for learning the important principles is currently Piranha CMS. It was the first CMS to support .NET Core, with Piranha CMS 4.0 released on 1st December 2017.
This chapter will cover the following topics:
  • Understanding the benefits of a CMS
  • Understanding Piranha CMS
  • Defining components, content types, and templates
  • Testing the CMS website

Understanding the benefits of a CMS

In previous chapters, you learned how to create static HTML web pages and configure ASP.NET Core to serve them when requested by a visitor's browser.
You also learned how ASP.NET Core Razor Pages can add C# code that executes on the server side to generate HTML dynamically, including from information loaded live from a database. Additionally, you learned how ASP.NET Core MVC provides separation of technical concerns to make building more complex websites more manageable.
On its own, ASP.NET Core does not solve the problem of managing content. In those previous websites, the person creating and managing the content would have to have programming and HTML editing skills, or the ability to edit the data in the Northwind database, to change what visitors see on the website.
This is where a CMS becomes useful. A CMS separates the content (data values) from templates (layout, format, and style). Most CMSs generate web responses like HTML for humans viewing the website with a browser.
Some CMSs generate open data formats like JSON and XML to be processed by a web service or rendered in a browser using client-side technologies like Angular, React, or Vue. This is often called a headless CMS.
Developers define the structure of data stored in the CMS using content type classes for different purposes, like a product page, with content templates that render the content data into HTML, JSON, or other formats.
Non-technical content owners can log into the CMS and use a simple user interface to create, edit, delete, and publish content that will fit the structure defined by the content type classes, without needing the involvement of developers or tools like Visual Studio Code.

Understanding basic CMS features

Any decent basic CMS will include the following core features:
  • A user interface that allows non-technical content owners to log in and manage their content.
  • A content delivery system that converts the content from simple data into one or more formats, like HTML and JSON.

Understanding enterprise CMS features

Any decent commercial enterprise-level CMS would add the following additional features:
  • Search Engine Optimized (SEO) URLs, page titles and related metadata, sitemaps, and so on.
  • Authentication and authorization including management of users, groups, and their access rights to content.
  • Media asset management of images, videos, documents, and...

Indice dei contenuti