From 58112b62af7945d51766ec539f5d61928e06d161 Mon Sep 17 00:00:00 2001 From: Mark J Price Date: Thu, 6 Oct 2022 21:30:08 +0100 Subject: [PATCH] Initial commit --- vs4win/Chapter10/WorkingWithEFCore/Program.Modifications.cs | 4 ++-- vscode/Chapter10/WorkingWithEFCore/Program.Modifications.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vs4win/Chapter10/WorkingWithEFCore/Program.Modifications.cs b/vs4win/Chapter10/WorkingWithEFCore/Program.Modifications.cs index 18a2234..077de65 100644 --- a/vs4win/Chapter10/WorkingWithEFCore/Program.Modifications.cs +++ b/vs4win/Chapter10/WorkingWithEFCore/Program.Modifications.cs @@ -70,7 +70,7 @@ partial class Program { if (db.Products is null) return (0, 0); - // Get the first product whose name starts with name. + // Get the first product whose name starts with the parameter value. Product updateProduct = db.Products.First( p => p.ProductName.StartsWith(productNameStartsWith)); @@ -119,7 +119,7 @@ partial class Program { if (db.Products is null) return (0, null); - // Get products whose name starts with name. + // Get products whose name starts with the parameter value. IQueryable? products = db.Products.Where( p => p.ProductName.StartsWith(productNameStartsWith)); diff --git a/vscode/Chapter10/WorkingWithEFCore/Program.Modifications.cs b/vscode/Chapter10/WorkingWithEFCore/Program.Modifications.cs index 18a2234..077de65 100644 --- a/vscode/Chapter10/WorkingWithEFCore/Program.Modifications.cs +++ b/vscode/Chapter10/WorkingWithEFCore/Program.Modifications.cs @@ -70,7 +70,7 @@ partial class Program { if (db.Products is null) return (0, 0); - // Get the first product whose name starts with name. + // Get the first product whose name starts with the parameter value. Product updateProduct = db.Products.First( p => p.ProductName.StartsWith(productNameStartsWith)); @@ -119,7 +119,7 @@ partial class Program { if (db.Products is null) return (0, null); - // Get products whose name starts with name. + // Get products whose name starts with the parameter value. IQueryable? products = db.Products.Where( p => p.ProductName.StartsWith(productNameStartsWith));