mirror of
https://github.com/markjprice/cs11dotnet7.git
synced 2026-02-26 00:44:14 +01:00
Initial commit
This commit is contained in:
parent
638c6f8f2b
commit
58112b62af
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
|
|
@ -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…
Reference in a new issue