エラーが発生しました
型'int?'を暗黙的に変換することはできません 'system.collections.generic.list?
誰かがこれについて私を助けてもらえますか?
internal class PatchDetails
{
internal List<int> ServerID { get; set; }
internal List<string> PatchStatus { get; set; }
}
class Program
{
void PatchQueue()
{
List<PatchDetails> patchinfo = new List<PatchDetails>();
using (PatchEntities server = new PatchEntities())
{
patchinfo = (from patches in server.AppPM_Patches
where patches.PatchStatus == "Started"
|| patches.PatchStatus == "NotStarted"
select new PatchDetails { ServerID = patches.ServerId, PatchStatus = patches.PatchStatus }).ToList();
}
}
}