Sunday, February 05, 2012
Getting Started with EasyObjects.NET 2.0
Minimize

OK, you've downloaded the EasyObjects.NET zip file. Now what? Here are a few pointers to add EasyObjects to your project.

Unzip EasyObjects to your hard drive

  1. Unzip the contents of the EasyObjects zip file to a folder on your hard drive, for example C:\Projects\EasyObjects20Free. 

    When unzipping, be sure to turn on the "Use folder names" option. See your zip utilities' documentation for more information.

Configure your project for EasyObjects

  1. Open your project in Visual Studio or Visual Studio Express.
  2. Right-click on the web.config file (for a web project) or the app.config file (for a WinForms project) and select Edit Enterprise Library Configuration.
  3. If you know the database connection parameters, right-click the application root node, point to New, and then click Data Access Application Block. This generates a Data Access subtree. If you have already defined a named connection string, you can skip this step. Click on the LocalSqlServer, and set the connection properties in the properties window. Be sure to change the node name from "LocalSqlServer" to something else, otherwise the Configuration tool will automatically delete the node (see the Usage Notes below).
  4. Save the changes and close the configuration tool.

Add a reference to EasyObjects

  1. Open your project in Visual Studio or Visual Studio Express.
  2. (Optional) Add the NCI.EasyObjects.csproj file to your project's solution.
  3. Right-click on your project's References folder and select Add Reference from the menu. If you added the EasyObjects project to your solution, select the Projects tab, select EasyObjects and click OK. If you did not add the project to your solution, click Browse on the NET tab, navigate to the EasyObjects \bin folder and select the NCI.EasyObjectsFree.dll. Click OK.
  4. Using the same technique, add references to the Enterprise Library DLLs for Data, Common and ObjectBuilder.

Usage Notes

The Configuration Tool creates a configuration section for each application block. If your application has defined the Data Access Application Block, the tool will automatically create a "LocalSqlServer" entry in the Connection Strings every time you open the config file in the tool. This behavior is by design, it is just a dummy placeholder and the tool will also automatically delete the LocalSqlServer entry when you close the tool. For this reason, you cannot have a connection named LocalSqlServer in your config file.

 

 

Last Updated: 12/11/2007

  

Getting Started with EasyObjects.NET 1.x
Maximize
Last updated: 12/28/2005

    

Privacy Statement  |  Terms Of Use
© 2007 Noonan Consulting Inc.