LINQ context.SubmitChanges() does not add record to database
This never happens. If you think that context.InsertOnSubmit(entity) is not adding the entity to your Context then you are doing something wrong. In my case, I had code like this: ProductContext...
View ArticleLINQ SubmitChanges throws Index Out Of Range Error
You’ll get this if you have Associations in your dbml file which do not reflect the reality of your database. In my case I was given a dbml file (NOT MY BUG! NOT MY BUG!) that had spurious Associations...
View ArticleSelectMany Example: Flatten Parent Child Association Into A Single List
I’m starting to get the hang of LINQ SelectMany now. Here’s a great article which explains SelectMany better than any other I’ve read. For this James Etheredge is awarded the BTWT Golden Tadpole With...
View Article
More Pages to Explore .....