How to use T4 template

Download source code and edit Jlob.OpenErpNet.Templates.

There is a OpenErpEntities.tt template, edit line 20 with your server parameters

OpenErpService openErpService = new OpenErpService("http://192.168.73.128:8069", "POLTEST", "admin", "admin");


Then save and OpenErpEntities.cs will be populated with class from OpenErp.

!!Warning
A field of select type in OpenErpMap is mapped as string, in next versión will be generated as enum.

Last edited Apr 14, 2014 at 9:15 PM by Jlob, version 1