/// <summary> /// Populates the fields of a single objects from the columns found in an open reader. /// </summary> /// <param name="obj" type="BDTaxType">Object of BDTaxType to populate</param> /// <param name="rdr" type="IDataReader">An object that implements the IDataReader interface</param> /// /// <remarks> /// /// <RevisionHistory> /// Author Date Description /// DLGenerator 12/27/2014 6:55:53 PM Created function /// /// </RevisionHistory> /// /// </remarks> /// internal static void PopulateObjectFromReader(BDTaxTypeBase obj, IDataReader rdr) { obj.TaxTypeID = rdr.GetInt32(rdr.GetOrdinal(BDTaxTypeFields.TaxTypeID)); if (!rdr.IsDBNull(rdr.GetOrdinal(BDTaxTypeFields.TaxTypeName))) { obj.TaxTypeName = rdr.GetString(rdr.GetOrdinal(BDTaxTypeFields.TaxTypeName)); } }
/// <summary> /// Populates the fields of a single objects from the columns found in an open reader. /// </summary> /// <param name="obj" type="BDTaxType">Object of BDTaxType to populate</param> /// <param name="rdr" type="IDataReader">An object that implements the IDataReader interface</param> /// /// <remarks> /// /// <RevisionHistory> /// Author Date Description /// DLGenerator 3/7/2015 2:37:03 PM Created function /// /// </RevisionHistory> /// /// </remarks> /// internal static void PopulateObjectFromReader(BDTaxTypeBase obj,IDataReader rdr) { obj.TaxTypeID = rdr.GetInt32(rdr.GetOrdinal(BDTaxTypeFields.TaxTypeID)); if (!rdr.IsDBNull(rdr.GetOrdinal(BDTaxTypeFields.TaxTypeName))) { obj.TaxTypeName = rdr.GetString(rdr.GetOrdinal(BDTaxTypeFields.TaxTypeName)); } if (!rdr.IsDBNull(rdr.GetOrdinal(BDTaxTypeFields.TaxValue))) { obj.TaxValue = rdr.GetDecimal(rdr.GetOrdinal(BDTaxTypeFields.TaxValue)); } }