예제 #1
0
        /// <summary>
        /// Populates the fields of a single objects from the columns found in an open reader.
        /// </summary>
        /// <param name="obj" type="INVTransferLineBatch">Object of INVTransferLineBatch 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:02 PM		Created function
        ///
        /// </RevisionHistory>
        ///
        /// </remarks>
        ///
        internal static void PopulateObjectFromReader(INVTransferLineBatchBase obj, IDataReader rdr)
        {
            obj.TransferLineBatchID = rdr.GetInt32(rdr.GetOrdinal(INVTransferLineBatchFields.TransferLineBatchID));
            obj.TransferLineID      = rdr.GetInt32(rdr.GetOrdinal(INVTransferLineBatchFields.TransferLineID));
            if (!rdr.IsDBNull(rdr.GetOrdinal(INVTransferLineBatchFields.BatchID)))
            {
                obj.BatchID = rdr.GetInt32(rdr.GetOrdinal(INVTransferLineBatchFields.BatchID));
            }

            if (!rdr.IsDBNull(rdr.GetOrdinal(INVTransferLineBatchFields.Qty)))
            {
                obj.Qty = rdr.GetDecimal(rdr.GetOrdinal(INVTransferLineBatchFields.Qty));
            }
        }
예제 #2
0
		/// <summary>
		/// Populates the fields of a single objects from the columns found in an open reader.
		/// </summary>
		/// <param name="obj" type="INVTransferLineBatch">Object of INVTransferLineBatch 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:02 PM		Created function
		/// 
		/// </RevisionHistory>
		///
		/// </remarks>
		///
		internal static void PopulateObjectFromReader(INVTransferLineBatchBase obj,IDataReader rdr) 
		{

			obj.TransferLineBatchID = rdr.GetInt32(rdr.GetOrdinal(INVTransferLineBatchFields.TransferLineBatchID));
			obj.TransferLineID = rdr.GetInt32(rdr.GetOrdinal(INVTransferLineBatchFields.TransferLineID));
			if (!rdr.IsDBNull(rdr.GetOrdinal(INVTransferLineBatchFields.BatchID)))
			{
				obj.BatchID = rdr.GetInt32(rdr.GetOrdinal(INVTransferLineBatchFields.BatchID));
			}
			
			if (!rdr.IsDBNull(rdr.GetOrdinal(INVTransferLineBatchFields.Qty)))
			{
				obj.Qty = rdr.GetDecimal(rdr.GetOrdinal(INVTransferLineBatchFields.Qty));
			}
			

		}