You work as a Web Developer in PassGuide.com. The company uses Microsoft .NET Framework
4 as its application development platform. You are using LINQ to SQL. You write the following
code segment:
public class Customer
{
public string Custid;
public string Name;
}
You want to designate the Customer class as an entity class that is associated with a database
table. Which of the following actions will you perform to accomplish the task?
A.
Mark the Customer class with TableAttribute.
B.
Mark the Customer class with FunctionAttribute.
C.
Mark the Customer class with ColumnAttribute.
D.
Mark the Customer class with DatabaseAttribute.
Explanation:
http://msdn.microsoft.com/en-us/library/system.data.linq.mapping.tableattribute%28v=vs.110%29.aspx
Designates a class as an entity class that is associated with a database table.