Exemplo n.º 1
0
        public static void Test_ExportTitle_Ebookdz_01()
        {
            string file = "PrintTitle_Ebookdz.txt";

            TraceMongoCommand.Export("dl", "Ebookdz_Detail", GetFile(file),
                                     //query: "{ 'download.PrintType': { $ne: 'Comics' } }",
                                     query: "{ 'download.PrintType': 'Print' }",
                                     fields: "{ '_id': 0 'download.Title': 1, 'download.PrintType': 1 }",
                                     limit: 1000,
                                     sort: "{ 'download.PostCreationDate': -1 }",
                                     transformDocument: doc => new MongoDB.Bson.BsonDocument {
                { "Title", doc.zGet("download.Title") }, { "PrintType", doc.zGet("download.PrintType") }
            });
        }
Exemplo n.º 2
0
        public static void Test_ExportTitle_TelechargerMagazine_01()
        {
            string file = "PrintTitle_TelechargerMagazine.txt";

            TraceMongoCommand.Export("dl", "TelechargerMagazine_Detail", GetFile(file),
                                     //query: "{ $or: [ { 'download.category': 'Ebooks/Journaux' }, { 'download.category': 'Ebooks/Magazine' } ] }",
                                     query: "{ 'download.PrintType': 'Print' }",
                                     fields: "{ '_id': 0 'download.Title': 1, 'download.PrintType': 1 }",
                                     limit: 1000,
                                     sort: "{ _id: -1 }",
                                     transformDocument: doc => new MongoDB.Bson.BsonDocument {
                { "Title", doc.zGet("download.Title") }, { "PrintType", doc.zGet("download.PrintType") }
            });
        }