Which below is specified by the DataMember Property?
-
Connection object
-
DataAdapter object
-
Database field
-
Database table
-
Dataset object
To answer this question, the user needs to know what the DataMember property is used for in the context of data access in .NET applications.
The DataMember property is used to specify the name of the database table or view that the data is retrieved from. Therefore, the correct answer is:
The Answer is: E. Database table
In ADO.NET data binding (e.g. DataGrid/DataList controls), the DataMember property specifies which table (or list) inside a bound DataSet the control should actually display, since a DataSet can contain multiple tables. Connection object, DataAdapter object, and Dataset object are distinct ADO.NET objects with no relation to naming a table for binding. 'Database field' is too granular — DataMember names a table, not an individual column, making 'Database table' the correct answer.