LINQ : Creating the XML of orders using Visual Basic 9.0 XML literals

Creating the XML of orders using Visual Basic 9.0 XML literals
Dim xmlOrders = <o:orders>
<%= From o In orders _
Select <o:order idCustomer=<%= o.CustomerID %>
idProduct=<%= o.Product.IdProduct %>
quantity=<%= o.Quantity %>
price=<%= o.Product.Price %>/> %>
</o:orders>

No comments:

Post a Comment