Jagjit Saini

Jagjit Saini

  • NA
  • 196
  • 37.6k

List only 2 columns

Mar 16 2022 7:27 AM

Hi

  In below query i want to select only 2 columnc

public List<View_Header> GetList()
{
    List<View_Header> Result = (from t in context.View_Headers
                                    where t.IsActive == true
                                    select t).ToList();
    return Result;
}

Thanks


Answers (6)