にLINQを使用した後に、私は、次のLINQクエリ鋳造のDataSet
var results = from myRow in QCAllDataSet.DataTable1.AsEnumerable()
where myRow.Field<String>("ESRNumber") == value
select new ESR(myRow.ESRNumber,
myRow.CreationDate,
myRow.Subsystem,
myRow.Name,
myRow.Product,
myRow.Version,
myRow.ESRStatus,
myRow.Owner,
myRow.Priority,
myRow.LastPHNote,
myRow.LastPHNoteDate,
myRow.LastPHNoteUser,
myRow.DaysFromLastUpdate,
myRow.Customer,
myRow.T2Owner,
myRow.T2Group,
myRow.comment,
myRow.ESRAge);
を行なったし、私はresults
オブジェクトESR
へ
somthigようESR t=(ESR)results
を変換したいと思いますが、私は次のエラーを取得します:
Cannot convert type 'System.Data.EnumerableRowCollection to ESR
私はこれをキャスするか?