public static void TestSavingPagedJson()
            {
                Options opt2 = PagedJsonOptions_S5Inventory.GetOptions
                                   ("F:\\_Customers\\_ColonialPhotoNHobbyInc\\CachedFiles", new List <string>());
                Options opt3 = PagedJsonOptions_S5Inventory.GetOptions
                                   ("F:\\_Customers\\_ColonialPhotoNHobbyInc\\CachedFiles\\WritePagedJsonTest", new List <string>());
                PagedJsonContext context2 = new PagedJsonContext(opt2);

                context2.SaveToPagedFiles(opt3);
            }
Ejemplo n.º 2
0
        private static IEnumerable <IS5InvAssembled> GetDataFromJson(IConfiguration config)
        {
            string CachedFilesDirectory = config["SourceDirectory"];

            Options opt = PagedJsonOptions_S5Inventory.GetOptions(CachedFilesDirectory, new List <string>());
            OdbcContext_S5Inventory context = new OdbcContext_S5Inventory(opt);

            // Assemble Inventory
            S5Inventory InvRaw = new S5Inventory
                                 (
                AltSuply_Records: context.AltSuplies
                , Comments_Records: context.CommentsLines
                , Inventry_27_Records: context.Inventry_27s
                , InvPrice_Records: context.InvPrices
                , Stok_Records: context.StokLines
                                 );
            IEnumerable <IS5InvAssembled> InvAss = InvRaw.ToAssembled();

            return(InvAss);
        }
 public static void TestReadingPagedJson() //Func<string, OdbcOptions> funcOptions
 {
     Options opt2 = PagedJsonOptions_S5Inventory.GetOptions
                        ("F:\\_Customers\\_ColonialPhotoNHobbyInc\\CachedFiles", new List <string>());
     PagedJsonContext context2 = new PagedJsonContext(opt2);
 }