This project is read-only.

Getting Started

Jun 21, 2009 at 6:27 PM
Edited Jun 21, 2009 at 6:45 PM

The requirements for working with ORM Smackdown are:

  1. Visual Studio 2008 (With Visual Studio Testing Tools)
  2. SQL Server 2008 Developer Edition, by changing the default configuration you will be able to use other configurations such as SQL Server Express or a database hosted on a different machine.

If you want to use the designer for LightSpeed ORM, you will need to install their express edition from here.

All other required DLLs should exist within the /Dependencies directory of the ORMSmackdown project, by default they should be configured properly as references in the main project.

To get started you will need a database on your local server SQL Server, by default the name of the database should be ORM_Smackdown.  You can change the name and location of the database by editing the App.Config file of the OrmSmackdownTests project however since this is used differently by different ORM's you might find it easier to just keep the default configuration.

Once you have created your database, run the script located in /Databases/SqlServer/Create.sql against that database.

At this point you should be ready to run the tests.  Within the OrmSmackdownTests project there are two important files:

  1. Runner.cs - this will create an instance of something that implements IExerciser specific for each ORM within the OrmSmackdown project
  2. Runner.cs will then use a sort-of poor mans dependency injection to create an instance of Exercises.cs with the ORM's implementation instance within the constructor.  Exercises.cs will run the new different exercises for the ORM

The exercises will write the output to the console and check the results via assertions.  You can view the output by looking at the test results.