Quantcast
Viewing all articles
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 all articles
Browse latest Browse all 3

Trending Articles