Ejemplo n.º 1
0
        /*========================     Pr.01     ========================*/

        internal static void ImportDataXml()
        {
            var users      = GetUsersList();
            var categories = GetCategoriesList();
            var products   = GetProductsList();

            DatabaseTools.FillInDataBase(users, categories, products);
        }
        /*========================     Pr.01     ========================*/

        internal static void ImportData()
        {
            var pathUsers = "Resources/users.json";
            var users     = ImportJson <User>(pathUsers);

            var pathCategories = "Resources/categories.json";
            var categories     = ImportJson <Category>(pathCategories);

            var pathProducts = "Resources/products.json";
            var products     = ImportJson <Product>(pathProducts);

            DatabaseTools.FillInDataBase(users, categories, products);
        }