我收到我的屬性中檢測到無法訪問的代碼。這適用於常規字符串字段,但不適用於DateTime數據類型。c#get和set訪問器datetime
private DateTime m_RenewalDate;
public DateTime M_RenewalDate
{
get { return m_RenewalDate != null ? m_RenewalDate : DateTime.MinValue; }
set { m_RenewalDate = value; }
}
這是我SqlDataReader的
reader.GetDateTime(reader.GetOrdinal("M_RENEWALDATE"))
如何你的領域界定? –
private DateTime m_RenewalDate; – Tim