我对MVC / LINQ很新,所以请耐心等待。我想检查TransmissionStatus var是否为false,如果是这样的linq到db来拉出相应的失败消息。
class AuditLogManagement
{
public int ID { get; set; }
public DateTime Date { get; set; }
public string MsgType { get; set; } //possibly enum?
public AuditLogEventDetails EventDetails { get; set; }
public string MsgContents { get; set; }
public bool TransmissionStatus { get; set; }
public string FailedTransmissionMsg
{
get
{
if (!TransmissionStatus)
{
//linq to db to return failed xmission message
}
}
}
}