Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Practical C# Projects with .NET
  • Table Of Contents Toc
Practical C# Projects with .NET

Practical C# Projects with .NET

By : Matt Eland
close
close
Practical C# Projects with .NET

Practical C# Projects with .NET

By: Matt Eland

Overview of this book

Too many C# developers feel stuck building the same apps day in and day out, but learning through side projects can reignite your passion and level up your skills. This book offers a practical, hands-on approach to building confidence with .NET 10 and modern C# by building a variety of engaging applications, from interactive games and productivity tools to machine learning apps and browser-based chatbots. These projects are designed to teach practical patterns and modern tooling, with a focus on learning and experimentation over production hardening. You'll work with tools like Spectre.Console, ML.NET, Uno Platform, and more, developing everything from an adventure game and a card tracker to an AI chatbot. You’ll also build modern AI-enabled systems using Ollama, Microsoft Agent Framework, OpenTelemetry, and Aspire. Written by an experienced C# engineer and teacher, this book blends technical depth with a developer-friendly tone, helping you learn faster and retain more. You'll sharpen your understanding of core .NET capabilities and gain confidence to apply them in your own work or hobby projects. By the end of this book, you'll not only have a portfolio of practical .NET apps - you’ll also have grown as a developer and rediscovered the joy of programming. *Email sign-up and proof of purchase required
Table of Contents (21 chapters)
close
close
Lock Free Chapter
1
Part 1: Building Console Applications
6
Part 2: Web, Mobile, and Desktop Applications
10
Part 3: Building AI-powered side projects
15
Part 4: Cross-platform Game Development with MonoGame
20
Index

Defining the data model with Entity Framework

Entity Framework (EF) is a premier .NET toolset for working with databases. Using EF, developers can focus on writing C# code using common object definitions, method calls, and LINQ statements to work with the data model. EF, in turn, generates and executes SQL to translate code concepts into database queries and the resulting data into .NET objects.

This makes EF a high productivity solution for developers looking to quickly scaffold their databases and focus on working with the resulting data.

Creating the DbContext object

Everything in EF flows through a DbContext object, which defines the major types of entities in the database. This project's DbContext object is called CardsDbContext and is defined here:

public class CardsDbContext(DbContextOptions<CardsDbContext> options)
   : DbContext(options) {
    public DbSet<User> Users { get; set; }
    public DbSet<Deck> Decks { get; set; }
    public...
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Practical C# Projects with .NET
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon