// DafBase:提供大部分应用程序所需的基本Data Entity支持,
// 包括Collection,ADO.NET
[Serializable()]
public abstract class DefBase : IList, IDictionary
{
protected internal string _typeEntity = EntityType.OBJECT;
// Collection fields
protected internal ArrayList _al = null;
protected internal Hashtable _ht = null;
// ADO.NET fields
protected internal DataSet _dst = null;
protected internal DataTable _tbl = null;
[NonSerialized()]
protected internal DbDataReader _rdr = null;
public DefBase() { }
public DefBase(ArrayList al)
{
this._al = al;
this._typeEntity = EntityType.COLLECTION_ARRAYLIST;
}
...
public DefBase(DataSet dst)
{
this._dst = dst;
this._typeEntity = EntityType.ADOX_DATASET;
}
public DefBase(DataTable tbl)
{
this._tbl = tbl;
this._typeEntity = EntityType.ADOX_TABLE;
}
...
}