コード例 #1
0
        //Product is FK
        public List <Book> BookBusinessLogic_BookReturnByProductId(int productId)
        {
            List <Book> books    = new List <Book>();
            BookData    bookData = new BookData();
            DataTable   dt       = new DataTable();

            dt = bookData.BookData_ProductImageByProductID(productId).Tables[0];

            foreach (DataRow row in dt.Rows)
            {
                Book prodactImg = new Book();
                // prodactImg.productImgB64 = row["productImgB64"].ToString();
                books.Add(prodactImg);
            }
            return(books);
        }