Unosquare.Labs.EntityFramework.EnterpriseExtensions.Sample.Program.QueryOrder.InvokeAsync C# (CSharp) Method

InvokeAsync() public method

public InvokeAsync ( string paramList ) : Task
paramList string
return Task
            public override async Task<bool> InvokeAsync(string paramList)
            {
                OutputInformation("Last Order");

                var lastitem = _context.Orders.OrderByDescending(x => x.OrderID).FirstOrDefault();

                if (lastitem != null)
                {
                    OutputInformation("OrderID {0}", lastitem.OrderID);
                    OutputInformation("OrderType {0}", lastitem.OrderType);
                    OutputInformation("ShippedDate {0}", lastitem.ShippedDate);
                    OutputInformation("ShipperCity {0}", lastitem.ShipperCity);
                }

                return true;
            }
        }
Program.QueryOrder