1
Reply

Mapping a class to LINQ in VB.Net

Rajendra Deopura

Rajendra Deopura

Oct 3 2008 11:08 PM
4.1k
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)