Creating Your Own Assembly

To create a new assembly in your application, perform the following steps:

1.
In your Web project directory, create a new directory called components. This directory will contain the code that makes up the assembly.
2.
Create a new file called ProductsDB.vb. This file will contain the code implementing the middle tier.

The classes that will be necessary for our middle layer are organized into namespaces. A namespace is just a code container; an organizational device. You're already familiar with namespaces—remember that System.Data.SqlClient is just a namespace with various classes implementing data access to SQL Server. ...

Get Sams Teach Yourself ADO.NET in 24 Hours 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.