| rocsana 2001-08-23, 10:11 am |
| Hello dear friends,
I'll have my 70-176 exam soon.
I have one question, maybe you can help.
You want to create a Visual Basic class. You want each instance of the class to represent a record in a database table. How can you accomplish this?
a. Create a new VB project based on the Data Project template. Set the ConnectionSource property of the DataEnvironment object, to refer to the appropiate DSN.
b. Create a class module that queries the desired table in the database. Provide a Property Get method for each field in the table.
c. Run the Visual Data Manager Add-in. Select the correct database and table and use the Copy structure command to generate the wrapper class.
d. Create a new ADO recordset object. When the execute method of the ADO recordset object is invoked, supply the table name as the CommandString argument and adCmdTable as the Option argument.
My answer: b
What's your opinion? |