if (row.Table.Columns.Contains("LastLoginTime")) {
this.UserLastLoginTime = row["LastLoginTime"].Equals(DBNull.Value) ? "---" :
Convert.ToDateTime(row["UpdateTime"]).ToString("yyyyMMddHHmmss");
}
判断NULL空值
Object cannot be cast from DBNull to other types.
从调试的异常面板中可以获取到具体哪一行(复制详细信息)