私はこのようなことをしようとしています...
public static List<string> GetAttachmentKeyList()
{
DataClassesDataContext dc = new DataClassesDataContext();
List<string> list = from a in dc.Attachments
select a.Att_Key.ToString().ToList();
return list;
}
VisualStudioは言っています...
タイプ「System.Linq.IQueryable>」を「System.Collections.Generic.List」に暗黙的に変換することはできません。明示的な変換が存在します(キャストがありませんか?)
適切な構文は何ですか?