Beispiel #1
0
		/// <summary>
		/// Populates the fields of a single objects from the columns found in an open reader.
		/// </summary>
		/// <param name="obj" type="INVStockType">Object of INVStockType 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:12 PM		Created function
		/// 
		/// </RevisionHistory>
		///
		/// </remarks>
		///
		internal static void PopulateObjectFromReader(INVStockTypeBase obj,IDataReader rdr) 
		{

			obj.StockTypeID = rdr.GetInt32(rdr.GetOrdinal(INVStockTypeFields.StockTypeID));
			obj.StockTypeName = rdr.GetString(rdr.GetOrdinal(INVStockTypeFields.StockTypeName));

		}
Beispiel #2
0
 /// <summary>
 /// Populates the fields of a single objects from the columns found in an open reader.
 /// </summary>
 /// <param name="obj" type="INVStockType">Object of INVStockType 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:12 PM		Created function
 ///
 /// </RevisionHistory>
 ///
 /// </remarks>
 ///
 internal static void PopulateObjectFromReader(INVStockTypeBase obj, IDataReader rdr)
 {
     obj.StockTypeID   = rdr.GetInt32(rdr.GetOrdinal(INVStockTypeFields.StockTypeID));
     obj.StockTypeName = rdr.GetString(rdr.GetOrdinal(INVStockTypeFields.StockTypeName));
 }