Bryan Krossley

Bryan Krossley

  • NA
  • 8
  • 3.8k

ASYNC LINQ METHOD

Feb 11 2014 2:19 PM
Hello,
How would I change this method to be async?

public void GetValue() {  var ctx = new CoinCatalogEntities(new Uri("http://localhost:54405/WcfDataService1.svc"));  var query = (from c in ctx.USsingle  select new USsingleResults()  {  CoinID = c.CoinID,  Checkbox = (bool)c.Checkbox,  Year = c.Year,  Description = c.Description,  Type = c.Type,  Value = c.Value,  G = c.G,  VG = c.VG,  F = c.F,  VF = c.VF,  XF = c.XF,  AU = c.AU,  MS60 = c.MS60,  MS63 = c.MS63,  MS64 = c.MS64,  MS64FB = c.MS64FB,  MS65 = c.MS65,  MS65FB = c.MS65FB  }).ToList<USsingleResults>();    Value = query; }

Thanks,
Bryan



Answers (4)