Exemple #1
0
 /// <summary>
 /// Create a WebTaxon instance.
 /// </summary>
 /// <param name='dataReader'>An open data reader.</param>
 public WebTaxonTreeNode(DataReader dataReader)
 {
     Id       = dataReader.GetInt32(TaxonData.ID);
     Taxon    = new WebTaxon(dataReader);
     Children = new List <WebTaxonTreeNode>();
     IsChild  = false;
     base.LoadData(dataReader);
 }
 /// <summary>
 /// Create a WebTaxonName instance.
 /// </summary>
 /// <param name='dataReader'>An open data reader.</param>
 public WebTaxonName(DataReader dataReader)
 {
     Id                 = dataReader.GetInt32(TaxonNameData.ID);
     IsRecommended      = dataReader.GetBoolean(TaxonNameData.IS_RECOMMENDED);
     TaxonNameTypeId    = dataReader.GetInt32(TaxonNameData.TAXON_NAME_TYPE_ID);
     TaxonNameUseTypeId = dataReader.GetInt32(TaxonNameData.TAXON_NAME_USE_TYPE_ID);
     Author             = dataReader.GetString(TaxonNameData.AUTHOR);
     Name               = dataReader.GetString(TaxonNameData.NAME);
     Taxon              = new WebTaxon(dataReader);
     base.LoadData(dataReader);
 }