Telerik Does LINQ to "M"

Stephen Forte and Mehfuz (who, like Prince and Cher, needs no last name), have built LINQ to "M", which means that if you've got "M" source code like this (shown in a C# string variable for loading convenience):

string MGraphCode =
@"{{Name=""Stephen Forte"", Age=37}, ... }";

and a C# type like this:

public class Person {
  public string Name { get; set; }
  public int Age { get; set; }
}

then you can load the "M" source and run LINQ queries against it:

var persons =
QueryContext.Instance.Load<Person>(MGraphCode);
var result =
from person in persons
  where person.Age == 37 &&
person.Name == "Stephen Forte"
  orderby person.Name ascending
  select person;

Enjoy!



1 comment on this post

Mehfuz:


Thanks Chris and you are definitly like the King ;).

Friday, Jul 10, 2009, 6:03 AM





comment on this post

HTML tags will be escaped.

Powered By ASP.NET

Hosted by SecureWebs

Microsoft

Mensa

IEEE


Best CD Rates
moving companies
addiction treatment
sunglasses
Kratom
How To Lose Weight Fast
cocktail dresses
Credit Card Balance Transfer
Add URL
Stock Trading
Health Insurance Quotes
Promotional Merchandise
Jet Privé
loans for bad credit