Figure 3. Generate Data Sources from DataContexts.
The Data Source Configuration Wizard can create an object data source from a DLinq DataContext class that simplifies databinding. This data source generated from the VbLinqDemo.sln sample project's Nwind DataContext lets you drag the Customers class, Customers.Orders EntityRef and Customers.Orders.OrderDetails EntitySet to add a BindingNavigator, BindingSources, and bound DataGridViews to a form (see Figure 2). The code editor window illustrates newly added colorization for XLinq code to generate XML documents from LINQ Select queries and XML literal code.