want to generate my data layer using bltoolkit, T4 templates and postgreSQL. I receive an exception running my T4 template, based on the one suggested by the documentation:
Error 5 Running transformation: System.ArgumentNullException: Value cannot be null.
Parameter name: type, at System.Activator.CreateInstance(Type type, Boolean nonPublic)
(...)
Working in VSNET08, with all libraries referenced, connecting to mssql works ok, and at first, all seems correct, but i leave something...
This is my .tt template:
<#@ template language="C#v3.5" hostspecific="True" #>
<#@ output extension=".generated.cs" #>
<#@ include file="BLToolkit.ttinclude" #>
<#@ include file="PostgreSQL.ttinclude" #>
<#@ include file="PluralSingular.ttinclude" #>
<#
ConnectionString = "<connection string to postgresql database";
DataProviderAssembly = @"..\References\Npgsql.dll";
GenerateModel();
#>