This question is locked. New answers and comments are not allowed.
Hello,
I am surprisingly having difficulty with my existing code after upgrading to Q1 2010. I have been using very general query functionality that seems to be broken after I upgrade. Most of this seems to be centered around the absence of Telerik.OpenAccess.Query namespace.
Can someone tell me the equivalent of the following code in VS2010?
| public static Customer GetCustomerByEmailAddress(string emailAddress) |
| { |
| IObjectScope objectScope = ObjectScopeProvider.ObjectScope(); |
| IObjectScopeQuery<Customer> customers = from x in objectScope.Extent<Customer>() |
| where x.EmailAddress == emailAddress.ToLower() |
| select x; |
| if (customers.ToList().Count > 0) |
| { |
| return customers.ToList()[0]; |
| } |
| return null; |
| } |
This would probably open alot of doors for me just to see this working. I am dead in the water right now.