public async Task GetOrdersAsync() { // Get orders. var orders = await SalesOrderDetail.GetByAnyAsync(); // Consume. orders.Consume(consumer); }
/// <summary> /// Creates northwind benchmark object. /// </summary> public BenchmarkAdventureWorks() { // Create entity works runtime configurator. var entityWorksConfiguration = new EntityWorksConfiguration(); // Initialize entity works runtime. entityWorksConfiguration.InitializeEntityWorks(); // Type metadata caching. var orders = SalesOrderDetail.GetByAnyAsync().Result; }
/// <summary> /// Entry method. /// </summary> static void Main(string[] args) { // Run benchmark. BenchmarkRunner.Run <BenchmarkAdventureWorks>(); // Create entity works runtime configurator. var entityWorksConfiguration = new EntityWorksConfiguration(); // Initialize entity works runtime. entityWorksConfiguration.InitializeEntityWorks(); // Type metadata caching. var orders = SalesOrderDetail.GetByAnyAsync().Result; // Write ok. Console.WriteLine("Done!"); }