CSharpFeeds - All your C# feeds in one place.

Monday, October 01, 2007

Complex Detached Entities in LINQ to SQL - more Nightmares

by Rick Strahl via Rick Strahl's Web Log on 10/1/2007 7:04:23 AM

Ok, so I thought I had the detached entity state in LINQ to SQL figured out, only to have that thrown back into my face. Basically the word from Microsoft is that if you have an entity that was loaded through a LINQ to SQL DataContext at any point it cannot be re-attached to the DataContext. Note that all the stuff below works fine with 'connected' entities that are attached to a single instance of the DataContext. The following only applies to scenarios where the entity needs to get detached fr ...

[ read more ]

Unit Testing Generic Lists

by Keyvan Nayyeri via Keyvan Nayyeri on 10/1/2007 1:58:00 AM

If you do unit tests frequently, know that unit testing a generic list is a very common scenario because generic lists are a common part of today's codes in the .NET world. Testing the equality of two generic lists isn't as easy as easy testing the equality of two objects from two simple types.  In order to test two generic lists, you need to follow one of two approaches that I describe in this post.  One of them is easy and can be done quickly and the second one may need more effort. ...

[ read more ]

Subscribe

New Feed

Product Spotlight

Recently Updated Sources

Legal Note

The content of the postings is owned by the respective author. CSharpFeeds is not responsible for the contents of the postings. This site is automatically generated and cannot be reviewed for abusive content. If you find abusive content on CSharpFeeds, please contact us. Designated trademarks and brands are the property of their respective owners. All rights reserved.

Advertise with us