/// <summary> /// Populates the fields of a single objects from the columns found in an open reader. /// </summary> /// <param name="obj" type="SALSalesLineBatch">Object of SALSalesLineBatch 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:56:05 PM Created function /// /// </RevisionHistory> /// /// </remarks> /// internal static void PopulateObjectFromReader(SALSalesLineBatchBase obj, IDataReader rdr) { obj.SalesLineBatchID = rdr.GetInt32(rdr.GetOrdinal(SALSalesLineBatchFields.SalesLineBatchID)); if (!rdr.IsDBNull(rdr.GetOrdinal(SALSalesLineBatchFields.SalesLineID))) { obj.SalesLineID = rdr.GetInt32(rdr.GetOrdinal(SALSalesLineBatchFields.SalesLineID)); } if (!rdr.IsDBNull(rdr.GetOrdinal(SALSalesLineBatchFields.BatchID))) { obj.BatchID = rdr.GetInt32(rdr.GetOrdinal(SALSalesLineBatchFields.BatchID)); } }
/// <summary> /// Populates the fields of a single objects from the columns found in an open reader. /// </summary> /// <param name="obj" type="SALSalesLineBatch">Object of SALSalesLineBatch 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:04 PM Created function /// /// </RevisionHistory> /// /// </remarks> /// internal static void PopulateObjectFromReader(SALSalesLineBatchBase obj,IDataReader rdr) { obj.SalesLineBatchID = rdr.GetInt32(rdr.GetOrdinal(SALSalesLineBatchFields.SalesLineBatchID)); if (!rdr.IsDBNull(rdr.GetOrdinal(SALSalesLineBatchFields.SalesLineID))) { obj.SalesLineID = rdr.GetInt32(rdr.GetOrdinal(SALSalesLineBatchFields.SalesLineID)); } if (!rdr.IsDBNull(rdr.GetOrdinal(SALSalesLineBatchFields.BatchID))) { obj.BatchID = rdr.GetInt32(rdr.GetOrdinal(SALSalesLineBatchFields.BatchID)); } if (!rdr.IsDBNull(rdr.GetOrdinal(SALSalesLineBatchFields.Qty))) { obj.Qty = rdr.GetDecimal(rdr.GetOrdinal(SALSalesLineBatchFields.Qty)); } }