100
Console.WriteLine($"\nProduct with Highest Frequency of Backorders: {productBackorderInfo.ProductName}, Total Sales: {productBackorderInfo.TotalSales}");
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
5
public class Program
6
{
7
public static void Main()
8
{
9
List<Product> products = new List<Product>
10
{
11
new Product { ProductID = 1, Name = "Laptop", IsBackordered = true },
12
new Product { ProductID = 2, Name = "Tablet", IsBackordered = false },
13
new Product { ProductID = 3, Name = "Smartphone", IsBackordered = true }
14
};
15
16
List<OrderDetail> orderDetails = new List<OrderDetail>
17
{
18
new OrderDetail { OrderDetailID = 1, OrderID = 1, ProductID = 1, Amount = 1000m },
19
new OrderDetail { OrderDetailID = 2, OrderID = 1, ProductID = 3, Amount = 500m },
20
new OrderDetail { OrderDetailID = 3, OrderID = 2, ProductID = 1, Amount = 1000m },
21
new OrderDetail { OrderDetailID = 4, OrderID = 2, ProductID = 2, Amount = 700m }
22
};
23
24
List<Order> orders = new List<Order>
Cached Result
<?xml version="1.0" encoding="utf-16"?>
<Namespace xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Types>
<Type Name="name" />
</Types>
</Namespace>
<Namespace xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Types>
<Type Name="name" />
</Types>
</Namespace>