3 Answers, 1 is accepted
0
Hi Gonzalo,
Unfortunately we are not offering such sample for the time being. However, we are going to consider adding such sample in our SDK in the next several months.Which RadGridView are you using - WPF, Silverlight or WinForms?
Ivailo
the Telerik team
Unfortunately we are not offering such sample for the time being. However, we are going to consider adding such sample in our SDK in the next several months.Which RadGridView are you using - WPF, Silverlight or WinForms?
If you have any problem or difficulty with the implementation, do not hesitate to get back to us for assistance.
Ivailo
the Telerik team
Q3’11 of Telerik OpenAccess ORM is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!
0
Gonzalo
Top achievements
Rank 2
answered on 22 Dec 2011, 11:08 PM
Hi Ivailo,
Thanks for your prompt response. How about this: how would you rewrite this
to get returned a couple of columns such as:
Thanks for your prompt response. How about this: how would you rewrite this
public IQueryable<Car> GetCarByCustomerName(string customerName){ var query = from c in this.DataContext.Cars from ro in this.DataContext.RentalOrders where ro.CarID == c.CarID && ro.Customer.FullName == customerName select c; return query;} c.Make, c.Model, c.CarYear
also a way to get a combination of fields coming out of both tables c and ro
Thanks and best regards,
Merry Christmas :) and a Happy New Year
G
0
Hi Gonzalo,
I would write something like:
the Telerik team
I would write something like:
public object GetCarByCustomerName(string customerName){ var query = from c in this.Cars from ro in this.RentalOrders where ro.CarID == c.CarID && ro.Customer.FullName == customerName select new { c.Make, c.Model, c.CarYear, ro.OrderTotal }; return query;}I hope that helps.
Thanks for the nice wishes :) Happy holidays to you too!
the Telerik team
Q3’11 of Telerik OpenAccess ORM is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!