Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercise 8 - 2 Create and use a class library In this exercise, you'll create a class library that includes the Invitem and InvitemDB classes

Exercise 8-2 Create and use a class library
In this exercise, you'll create a class library that includes the Invitem and InvitemDB classes of the Inventory Maintenance application from Exercise 8-1 above. Then, you'll use that class library with the Inventory Maintenance application.
Create the Class Library project
Extract the provided start project (w08 Exercise Project Starts.zip), which creates the "Inventorymaint with Library" folder. Don't open the folder yet.
Create a new Class Library project named "InventoryLibrary" in the "InventoryMaint with Library" folder extracted above.
In the InventoryLibrary class library project, delete the empty Class1.cs class, and add the Invitem and InvItemDB classes from the Inventory Maintenance project in the same directory.
Change the namespace in both of the classes you just added so it's a namespace named Inventory nested within a namespace with your last name.
Change the solution configuration for the class library to Release, and then build the class library. When you're done, close the solution.
Modify the Inventory Maintenance application to use the library
6. Open the InventoryMaintenance project.
7. Delete the Invitem.cs and InvItemDB.cs files, and then add a reference to the InventoryLibrary assembly you created in step 4.
8. Display the code for the Inventory Maintenance form, and add a using directive for the namespace you created in step 3. Do the same for the New Item form.
9. Test the application to be sure it still works.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Filing And Computer Database Projects

Authors: Jeffrey Stewart

2nd Edition

007822781X, 9780078227813

More Books

Students also viewed these Databases questions

Question

What is DDL?

Answered: 1 week ago