Question: (b) Consider the 'medicines' database tables given in the following image. Write C# class of the medicines table. Write a public member function in the

(b) Consider the 'medicines' database tables given in the following image. Write C# class of the medicines table. Write a public member function in the medicines class that creates a HashTable to store 5 medicines' data. Also write code to loop through HashTable and print medicines details in the console. medicines med_id (PK) med_name quantity available_Qty description expiry_date requested_date (c) Considering 'medicines' class in Question No. 1(b) a Write GET endpoint in C# which utilizes EntityFramework to fetch data from the database and return to the client side. b. Write PUT endpoint in C# which utilizes EntityFramework to receive medicines data from client side and save in the database. c. Write DELETE endpoint in C# which utilizes EntityFramework to receive Medicine ID from client-side and delete the record from the database
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
