public class drgs_report_data
{
public ObjectId _id;
public string reportContent{ get; set; }
// public object reportContent { get { return string.Empty; } set { reportContent = string.Empty; } }
public string _class { get; set; }
public Int64 diseaseId { get; set; }
public int caseId { get; set; }
public DateTime auditTime { get; set; } //
public string bigDepartment { get; set; }
public string chargeDoctor{ get; set; }
public DateTime createTime { get; set; } //
public int dataState { get; set; }
public DateTime dataTime { get; set; }//
}
public List<T> FindAllMore<T>()
{
List<T> list = new List<T>();
try
{
list = this._db.GetCollection(typeof(T).Name).FindAllAs<T>().ToList();//执行这里的时候异常了
}
catch (Exception ex)
{
}
return list;
}
异常信息如下:reportContent 这个字段string 的不能序列号,,请问这个要怎么改??
An error occurred while deserializing the reportContent property of class MongodbHelper.Model.drgs_report_data: Cannot deserialize string from BsonType Document.