private static void BatchMakeN201UDataForMongo() { using (N201UXIDBeforeMessage nxbm = new N201UXIDBeforeMessage()) { nxbm.CreateCollection(); Console.WriteLine("N201UXIDBeforeMessage->mongo->ok"); } GC.Collect(); using (N201UXIDStatics nxs = new N201UXIDStatics()) { nxs.CreateCollection(); Console.WriteLine("N201UXIDStatics->mongo->ok"); } GC.Collect(); }
public IEnumerable<N201UXIDBeforeMessageDocument> getN201UXIDBeforeMessageDocumentSet() { N201UXIDBeforeMessage nxbf = new N201UXIDBeforeMessage(); foreach (var tcp in nxbf.mongo_fcbm.QueryMongo()) yield return tcp; }