Software Architecture with C# 12 and .NET 8 by Gabriel Baptista

Software Architecture with C# 12 and .NET 8 by Gabriel Baptista

Author:Gabriel Baptista [Baptista, Gabriel]
Language: eng
Format: epub
Tags: Kubernetes book, c# 11 and .net 7 modern cross-platform development fundamentals, azure devops, devops book, devops handbook, microservices patterns, entity framework core
Publisher: Packt Publishing
Published: 2023-12-29T00:00:00+00:00


Then, we need to load the entity into memory with a query, modify it, and call await SaveChangesAsync() to synchronize our changes with the database.

If we want to modify, say, just its description, a query such as the following is enough:

var toModify = await context.Destinations .Where(m => m.Name == "Florence").FirstOrDefaultAsync();

We need to load all the related destination packages that are not loaded by default. This can be done with the Include clause, as follows:

var toModify = await context.Destinations .Where(m => m.Name == "Florence") .Include(m => m.Packages) .FirstOrDefaultAsync();



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.