SqlCommandBuilder Construtores
Definição
Inicializa uma nova instância da classe SqlCommandBuilder.Initializes a new instance of the SqlCommandBuilder class.
Sobrecargas
| SqlCommandBuilder() |
Inicializa uma nova instância da classe SqlCommandBuilder.Initializes a new instance of the SqlCommandBuilder class. |
| SqlCommandBuilder(SqlDataAdapter) |
Inicializa uma nova instância da classe SqlCommandBuilder com o objeto SqlDataAdapter associado.Initializes a new instance of the SqlCommandBuilder class with the associated SqlDataAdapter object. |
SqlCommandBuilder()
Inicializa uma nova instância da classe SqlCommandBuilder.Initializes a new instance of the SqlCommandBuilder class.
public:
SqlCommandBuilder();
public SqlCommandBuilder ();
Public Sub New ()
Aplica-se a
SqlCommandBuilder(SqlDataAdapter)
Inicializa uma nova instância da classe SqlCommandBuilder com o objeto SqlDataAdapter associado.Initializes a new instance of the SqlCommandBuilder class with the associated SqlDataAdapter object.
public:
SqlCommandBuilder(System::Data::SqlClient::SqlDataAdapter ^ adapter);
public SqlCommandBuilder (System.Data.SqlClient.SqlDataAdapter adapter);
new System.Data.SqlClient.SqlCommandBuilder : System.Data.SqlClient.SqlDataAdapter -> System.Data.SqlClient.SqlCommandBuilder
Public Sub New (adapter As SqlDataAdapter)
Parâmetros
- adapter
- SqlDataAdapter
O nome do SqlDataAdapter.The name of the SqlDataAdapter.
Comentários
O SqlCommandBuilder registra-se como um ouvinte para RowUpdating eventos gerados pelo SqlDataAdapter especificado nessa propriedade.The SqlCommandBuilder registers itself as a listener for RowUpdating events that are generated by the SqlDataAdapter specified in this property.
Quando você cria uma nova instância do SqlCommandBuilder , qualquer existente SqlCommandBuilder associada a ela SqlDataAdapter é liberada.When you create a new instance of SqlCommandBuilder, any existing SqlCommandBuilder associated with this SqlDataAdapter is released.