Quantcast
Channel: Bite The Wax Tadpole » LINQ
Browsing all 3 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

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 Article



Image may be NSFW.
Clik here to view.

LINQ 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 Article

Image may be NSFW.
Clik here to view.

SelectMany 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
Browsing all 3 articles
Browse latest View live




Latest Images