Ejemplo n.º 1
0
 /// <summary>
 /// Populates the fields of a single objects from the columns found in an open reader.
 /// </summary>
 /// <param name="obj" type="INVProductStockBatch">Object of INVProductStockBatch 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:10 PM		Created function
 ///
 /// </RevisionHistory>
 ///
 /// </remarks>
 ///
 internal static void PopulateObjectFromReader(INVProductStockBatchBase obj, IDataReader rdr)
 {
     obj.ProductStockBatchID = rdr.GetInt32(rdr.GetOrdinal(INVProductStockBatchFields.ProductStockBatchID));
     obj.ProductStockID      = rdr.GetInt32(rdr.GetOrdinal(INVProductStockBatchFields.ProductStockID));
     obj.BatchID             = rdr.GetInt32(rdr.GetOrdinal(INVProductStockBatchFields.BatchID));
     obj.Qty = rdr.GetDecimal(rdr.GetOrdinal(INVProductStockBatchFields.Qty));
 }
Ejemplo n.º 2
0
		/// <summary>
		/// Populates the fields of a single objects from the columns found in an open reader.
		/// </summary>
		/// <param name="obj" type="INVProductStockBatch">Object of INVProductStockBatch 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:14 PM		Created function
		/// 
		/// </RevisionHistory>
		///
		/// </remarks>
		///
		internal static void PopulateObjectFromReader(INVProductStockBatchBase obj,IDataReader rdr) 
		{

			obj.ProductStockBatchID = rdr.GetInt32(rdr.GetOrdinal(INVProductStockBatchFields.ProductStockBatchID));
			obj.ProductStockID = rdr.GetInt32(rdr.GetOrdinal(INVProductStockBatchFields.ProductStockID));
			obj.BatchID = rdr.GetInt32(rdr.GetOrdinal(INVProductStockBatchFields.BatchID));
			obj.Qty = rdr.GetDecimal(rdr.GetOrdinal(INVProductStockBatchFields.Qty));

		}