public SampleClass { public int SampleID public int Sample1 public int Sample2 . . . public int Samplen public string SampleString1 public string SampleString2 . . . public string SampleStringn }
List<sampleclass> sampleList=(from q in context.SampleTable select new SampleClass{SampleID=q.Sample1,Sample1=q.Sample2}).ToList();
List<sampleclass> sampleList=(from q in context.SampleTable select new SampleClass{SampleID=q.Sample1,Sample1=q.Sample2,...,Samplen=q.Samplen,SampleString1=q.SampleString1,...,SampleStringn}).ToList();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)