Quantcast
Viewing latest article 2
Browse Latest Browse All 3

Answer by Alex Moore for Linq to Sql Many-One relationship

You can extend your PurchaseOrder class to implement the OnLoadedMethod:

public partial class PurchaseOrder {    partial void OnLoaded()    {        LineItems = FunctionToCall_sp_getPurchaseOrderLineItems_AndBuildSet();    }}

This will at least get the line items automatically when you get your PO.


Viewing latest article 2
Browse Latest Browse All 3

Trending Articles