B-Arts DocumentationIndice generale

BDataSet

Identità

  • Namespace: B.BData

  • Assembly: BFramework

  • Tipo: class

  • Classe base: DataSet

  • Interfacce: IComponent, IDisposable, IServiceProvider, IListSource, IXmlSerializable, ISupportInitializeNotification, ISupportInitialize, ISerializable

  • Sorgente API: versione 5.0.0

Scopo

Tipo pubblico B-Arts del namespace B.BData. La responsabilità concreta è rappresentata dai membri pubblici elencati di seguito.

Quando usarlo

Per ottenere normalmente un DataSet, anche quando una stored procedure restituisce più result set, usare prima BConnection.ApriDS(SPName). Il risultato contiene le tabelle in DataSet.Tables nell'ordine restituito dalla stored procedure.

Usare direttamente BDataSet soltanto quando sono richieste sue funzionalità specifiche, come conservare il comando e ricaricare lo stesso oggetto tramite Reload. Non proporre il costruttore di BDataSet come risposta predefinita alla semplice richiesta di recuperare un DataSet.

Dichiarazione

public class BDataSet : DataSet, IComponent, IDisposable, IServiceProvider, IListSource, IXmlSerializable, ISupportInitializeNotification, ISupportInitialize, ISerializable

Costruttori

  • BDataSet()

  • BDataSet(string SPName, BConnection cnn, int CommandTimeout = 30)

Proprietà

Proprietà Tipo Accesso
DataAdapter IDbDataAdapter? get
SqlCommand string get/set
Timeout int get/set

Eventi

  • Disposed: EventHandler?

  • FillError: FillErrorEventHandler?

Metodi

  • void AttachEvents()

  • void Reload(BConnection Cnn)

Esempi

Consultare BDataSet - Esempi.