6 Simple Steps to use ORM.NET

Spend a few minutes learning ORM.NET.  

We guarantee it will change the way you develop .NET Applications

The easiest way to understand the powerful features that ORM.NET offers is to generate a data layer project based on a sample database. This chapter quickly walks you through the process of using ORM.NET to generate a data layer component based on a database schema and develop against the generated interfaces. Once you see the power and flexibility ORM.NET offers you can continue to learn about more of the advanced features available.

 

 

To download and install ORM.NET see the section: Installing ORM.NET

 

The following steps walk you through the process of generating a Data Layer and writing some code using the OleroTraining database.  Refer to Setup OleroTraining database and sample application for more information.

 

 

 

The steps required to begin use an ORM.NET generated Data Layer are:

 

  1. Create your database schema using a data management tool such as SQL Enterprise Manager. Define the tables, columns and relationships that will make up your data base schema.
  2. Connect to your database. Once you connect to your database an object based representation of the schema is displayed for you to view and modify.
  3. Modify Data Object and Property settings of the data object model to control  the  scope of accessor and modifiers.
  4. Click 'Generate Data Layer' to create the .NET Data Layer assembly based on your schema
  5. Open the generated .NET solution and compile the new Data Layer project within Visual Studio.NET
  6. Develop your application using the data access layer interface.