hi,
you can do this way
public static IQueryable<CertificateType> CertificateTypeSearch()
{
DataClassesDataContext context = new DataClassesDataContext();
var CertType = (from certificateType in context.CertificateTypes
select new
{
CID = certificateType.CID,
Name = certificateType.Name,
EName = certificateType.Equipment
});
return CertType;
}