Mapping a class to LINQ in VB.Net

Oct 3 2008 11:08 PM
I want to use LINQ DataSource Control where I nedd to map a user defined class to LINQ table. How I applied the table attribute and column attribute to class in VB.Net ? Ex -

public class Customer
[Table(Name="Customers")]
Dim strid as String
[Column(DBTYPE="varchar")]
Public Property ID() as String
get
return strid
end get
set
stif=value
end set
end class

I got the error on Table and column mapping line.

Please anyone can rectify this problem.

Thanks









Answers (1)