Thursday, December 18, 2008

DataObjects.Net 4 project template

Project template location

Update: now project template is installed by DataObjects.Net installer automatically.

Installation

The installation is simple: just double-click on downloaded "DataObjects.Net_4_Project.vsi" file and follow the installer instructions.

Be sure that DataObjects.Net 4 is installed in the right folder ("C:\Program Files\X-tensive.com\DataObjects.Net 4.0\").
If no, the simplest way to fix it is to copy DataObjects.Net 4 into the specified folder.



Solution for geeks and advanced users
  1. Find "DataObjects.Net 4.0 Project.zip" in Visual Studio 2008 custom project template folder ("%My Documents%\Visual Studio 2008\Templates\ProjectTemplates\Visual C#\").
  2. Unzip contents, open "DataObjects.Net 4.0 Project.vstemplate", set $DataObjectsDotNet4Path$ variable to desired path, save file and pack it back.


Usage

To create new project based on DataObjects.Net 4 framework open Visual Studio, click "New" -> "Project" and select "DataObjects.Net 4 Project" as it is shown on the image:


New project dialog


After clicking "OK" simple C# project will be created. It will contain one persistent class "Person", a set of references to required assemblies and PersistentAttribute will be applied in AssemblyInfo.cs file. Remember to synchronize PersistentAttribute parameters if you are going to rename assembly with your persistent model.


Project structure
Any comments and suggestions are welcome.

No comments:

Post a Comment