Wednesday, April 11, 2012

Error: Cannot convert lambda expression to type 'int' because it is not a delegate type

This is the source code( I am using CodeSmith Tools):
public static int Delete(this System.Data.Linq.Table table, int pKProgramID)
{
return table.Delete(p => p.PKProgramID == pKProgramID);
}



I am getting this error:
Cannot convert lambda expression to type 'int' because it is not a delegate type C:\Projects\New\EAccreditation.Data\Queries\ProgramsExtensions.Generated.cs



Please, advised
Thank you





No comments:

Post a Comment