none
DomainService IQueryable

    Question

  • Getting better at this, but still have some questions that I can't seem to find documentation on.

     

    I am trying to run this with IQueryable.

    However it seems to return IEnumerable<char> which is strange because I thought it would be at least a string.

    return from c in this.ObjectContext.PrdAppAlls
                     where c.ApplicationClass == cls
                     select c.ApplicationType.Distinct();
    I am trying to do the equivilent of a distinct on a field and have a where like:
    select disting myfield where myotherfield = "somestring" from mytable
    IQueryable doesn't support distinct. At least not that I could figure out.
    Any good reference material on this anywhere?
     
    Friday, April 13, 2012 9:04 AM