mongoDB 官方C#驱动 序列化数组但序列成System.Collections.Generic.List`1
使用官方C# Driver
[Serializable]
public class ActionClass
{
[BsonId(IdGenerator = typeof(StringObjectIdGenerator))]
public string ID { get; set; }
public string Content { get; set; }
public string[] Tag { get; set; }
}
public static string Insert(ActionClass row)
{
SafeModeResult rtn = DB.GetCollection(TableName).Insert<ActionClass>(row);
return row.ID;
}