Stock Management System Case Study

To illustrate the concepts we presented in this chapter, we modified the Stock Management System application from the previous chapter. The case study resides in the StockMgrForm folder. The code for the user interface remained intact. We made changes to the Stock component, which implements now the IStock interface using ADO.NET classes. Here we present the code for the Stock constructor, where we fill the dataset with the items from the Stock table. Additionally, we initialize the commands for the data adapter used to propagate the changes back to the data base. You should change the server name in the connection string to your local server name.

 sub Stock { my $this = shift; # Change the server name accordingly ...

Get Programming PERL in the .NET Environment now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.