↧
Answer by tofi9 for Linq to Sql Many-One relationship
This is the n+1 problem. nHibernate has a solution for this, which is called join-fetch querying. What it basically does is a outer-join query between order and order-line, which will result in the...
View ArticleAnswer 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 =...
View ArticleLinq to Sql Many-One relationship
I have 2 views in SQL set up:PurchaseOrderPurchaseOrderLineItemsThese have many columns aliased (the tables they view/join are not sensibly named... it's a 3rd party product)I have 2 classes...
View Article