Error: Cannot convert lambda expression to type 'int' because it is not a delegate type
<p>This is the source code( I am using CodeSmith Tools):</p>

<pre><code>public static int Delete(this System.Data.Linq.Table&lt;EAccredidation.Data.Programs&gt; table, int pKProgramID)
{
    return table.Delete(p =&gt; p.PKProgramID == pKProgramID);
}
</code></pre>

<p>I am getting this error:</p>

<blockquote>
  <p>Cannot convert lambda expression to type 'int' because it is not a delegate type   C:\Projects\New\EAccreditation.Data\Queries\ProgramsExtensions.Generated.cs </p>
</blockquote>

<p>How can I fix it?</p>
