Step 1: Launch the Generator and Choose a Project

  1. Open a solution that contains at least one MM .NET business object project.

  2. You must run Visual Studio with Administrator privileges on your development machine to use the Buiness Layer Generator. This is because the BLG is using Visual Studio Automation to examine files in your project and to generate code!

  3. The Business Layer Generator needs a valid connection string to your database in order to read database information. If you have not already set up a connection, see the topics Specifying Connection Strings in the Config File and If You Are Having Problems Connecting... for details.

  4. From the Visual Studio menu select Tools | MM .NET Business Layer Generator.

  5. The first page of the Business Layer Generator asks you to choose a business object project to which newly generated business objects are to be added:

    If there are multiple business object projects in your solution, select the desired project and click Next.

    If a solution containing a business object project is not currently open, you will get the following error dialog:

    Just click OK to close the dialog and open a solution containing a business object project.

    See Also:
    Step 2: Specify the Code Generation Settings


© (c) 2026 Oak Leaf Enterprises, Inc., 1996-2026 • Updated: 06/27/18
Comment or report problem with topic