コード例 #1
0
 private void LoadData()
 {
     BsonDocument document = GetCollection().zFindOneById<BsonDocument>(BsonValue.Create(_id));
     if (document != null)
         _downloadAutomate = BsonSerializer.Deserialize<DownloadAutomate>(document);
     else
         _downloadAutomate = CreateData();
 }
コード例 #2
0
        private void LoadData()
        {
            BsonDocument document = GetCollection().zFindOneById <BsonDocument>(BsonValue.Create(_id));

            if (document != null)
            {
                _downloadAutomate = BsonSerializer.Deserialize <DownloadAutomate>(document);
            }
            else
            {
                _downloadAutomate = CreateData();
            }
        }