Hello,
I have the following code which is an entity for a table in my database.
but I am getting several errors such as:
The type or namespace name 'ColumnAttribute' could not be found (are you
missing a using directive or an assembly reference?)
Using the generic type 'System.Data.Linq.Table<TEntity>' requires '1' type
arguments
What is the problem and how can I solve it?
Regards
[Table(Name = "Items")]
public class Items
{
[Column(IsPrimaryKey = true)]
public int Title { get; set; }
[Column]
public string Desc { get; set; }
}