private static async Task DoBulkInsertIntoTempTableAsync(DemoDbContext ctx) { var customersToInsert = new Customer(Guid.NewGuid(), "First name", "Last name"); await using var tempTable = await ctx.BulkInsertIntoTempTableAsync(new[] { customersToInsert }); var insertedCustomer = await tempTable.Query.FirstAsync(c => c.Id == customersToInsert.Id); Console.WriteLine($"Customer from temp table: {insertedCustomer.Id}"); }