Problem with LINQ in C#
- by David Bonnici
I am encountering a problem when using LINQ in C#, I am constantly getting "Specified cast is not valid". This is what I am trying to do.
I create a class in which I declare all the columns of the table.
[Table(Name="tbl_Aff")]
public class Affiliate
{
[Column]
public string name;
[Column]
public…