Monthly Archives: April 2010

EF v1: AttachAsModified

Daniel Simmons published on his blog a very useful method for N-Tiers development: AttachAsModified. However, there is a problem. The problem with it is the fact that the entity has to have his EntityKey and set it is bored. So, … Continue reading

Posted in 7671, 7674 | 1 Comment

LINQ To Entities: How to do a multi-criteria search? v2

In my previous post, I showed you how to make a search on an Address. In this one, I will show you how to do it with any type (entity type or complex type). Before this, I want to write … Continue reading

Posted in 12253, 7671, 7674 | Leave a comment

LINQ To Entities: How to do a multi-criteria search?

My model is the following: Today’s subject is to use address properties to get all customers with pertinent address comparing to a string array to search. At first, we will do it only on City: public static IQueryable<Customer> SearchCustomersByAddressElements(this NorthwindEntities … Continue reading

Posted in 12253, 7671, 7674 | Leave a comment

MVP ++ but Data Platform Development

After two years as C# MVP, I’m happy to become a Data Platform Development MVP.

Posted in 7670 | Leave a comment

ObservableCollection… better

ObservableCollection class is probably one of the worst classes I have ever seen in the .NET fx: Some current collection methods are missing: (AddRange for example) Bad for performance when we Refresh the collection (1 Clear + n Add) => … Continue reading

Posted in 13461, 7671, 7672, 8708 | 3 Comments