December 2002
Beginner to intermediate
432 pages
10h 10m
English
Before we continue, let’s finish the initialization code. Go back to the constructor. After the code we added to wire the events, let’s add this code:
mSQLBuilder = New SqlClient.SqlCommandBuilder(mAdapter)
mAdapter.SelectCommand = New SqlClient.SqlCommand("", mConnection)
mAdapter.InsertCommand = New SqlClient.SqlCommand("", mConnection)
mAdapter.DeleteCommand = New SqlClient.SqlCommand("", mConnection)
mAdapter.UpdateCommand = New SqlClient.SqlCommand("", mConnection)
mDataSet.Tables.Add() These initializers just precreate the objects mentioned so they show up in the Property window correctly. Before the region add the following declarations. The region statement is shown for a point of reference:
Private mSQLBuilder ...
Read now
Unlock full access