Filling a DataSet with the Data Application Block
Nuestro buen amigo Javier Caceres nos comparte su artículo:
Filling a DataSet with the Data Application Block
DataSet are usually filled using a DbDataAdapter and a DbCommand, however there are some advantages in filling the DataSet using the Microsoft Data Application Block. Note that I don’t use specific objects like SqlDataAdapter or SqlCommand because these objects are specific to SqlServer.
By using the Data Application Block you can delegate it the initialization task of specific database objects, so you can easily change later your data base management system without changing any code. By other hand, if you prefer using the DbDataAdapter you have to initialize the DataSet before filling it and then you need to create a DbConnection object and open/close it. These three additional steps represent a higher risk to make mistakes, so it’s better filling DataSets using the Microsoft Data Application Block.
Ver más aquí.
Gracias.
Fernando García Loera (Community Program Manager – Latin America Region)