1
Answer

Mapping a class to LINQ in VB.Net

Rajendra Deopura

Rajendra Deopura

16y
4.1k
1
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)