LINQ in Action roller

Linq2SQL Count, Single/SingleOrDefault operator bugs(?) in ASP.Net applications

DB.Customers.Count(c => c.City == "London"); Specified cast not valid exception, if there is some customers from London. However Func<Customer, bool> predicate = c => c.City == "London"; DB.Customers.Count(predicate); works well. Another bug(?): When I delete customer from database in one page request and then execute Customer cust = DB.Customers.SingleOrDefault(c => c.CustomerID == deletedCustomerID) ; in the other request, it somehow brings this customer from Read More...
Published Sunday, February 11, 2007 9:44 AM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication