I used to write a retrieval query like this
EntityList<Customer> customers = myPM.GetEntities<Customer>(query);
And then I would pass the customers object to a data grid.
How do I do the same in Linq
This is what I have so far:
private readonly TicketWareEntities entityManager = TicketWareEntities.DefaultManager;
public ObservableCollection<Vendor> Vendors { get; private set; }
public ????? FetchVendors()
{
var query = from Vendor in entityManager.Vendors
orderby Vendor.VendorName
select Vendor;
????? = entityManager.ExecuteQuery<Vendor>(query);
return ?????
}