mirror of
https://github.com/markjprice/cs11dotnet7.git
synced 2026-04-06 14:53:47 +00:00
Initial commit
This commit is contained in:
parent
638c6f8f2b
commit
58112b62af
2 changed files with 4 additions and 4 deletions
|
|
@ -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<Product>? products = db.Products.Where(
|
||||
p => p.ProductName.StartsWith(productNameStartsWith));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue