Добавил шаблон такого содержания:
<#@ template debug="True" hostspecific="True" #>
<#@ output extension=".generated.cs" #>
<#@ include file="$(SolutionDir)\Templates\BLToolkit.ttinclude" #>
<#@ include file="$(SolutionDir)\Templates\MSSQL.ttinclude" #>
<#
ConnectionString = @"Server=.\SQLEXPRESS;Database=WOG;Integrated Security=SSPI";
Namespace = "RouteTracer";
DataContextName = "Wog";
LoadMetadata();
Tables["MONLEAKS"].Columns["ALERTLEVEL+"].MemberName = "AlertLevelPlus";
Tables["MONLEAKS"].Columns["ALERTLEVEL-"].MemberName = "AlertLevelMinus";
GenerateModel();
#>
А он мне:
The type or namespace name 'TableExpressionAttribute' could not be found (are you missing a using directive or an assembly reference?)
Код отсюда:
http://bl-toolkit.googlecode.com/svn/trunk
Тьху, прошу прощения. Подсоединил старую версию блтулкита.