/// <summary>
 /// Populates the fields of a single objects from the columns found in an open reader.
 /// </summary>
 /// <param name="obj" type="BDProductGroup">Object of BDProductGroup 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:55 PM		Created function
 ///
 /// </RevisionHistory>
 ///
 /// </remarks>
 ///
 internal static void PopulateObjectFromReader(BDProductGroupBase obj, IDataReader rdr)
 {
     obj.ProductGroupID   = rdr.GetInt32(rdr.GetOrdinal(BDProductGroupFields.ProductGroupID));
     obj.ProductGroupName = rdr.GetString(rdr.GetOrdinal(BDProductGroupFields.ProductGroupName));
     if (!rdr.IsDBNull(rdr.GetOrdinal(BDProductGroupFields.Notes)))
     {
         obj.Notes = rdr.GetString(rdr.GetOrdinal(BDProductGroupFields.Notes));
     }
 }
Exemple #2
0
		/// <summary>
		/// Populates the fields of a single objects from the columns found in an open reader.
		/// </summary>
		/// <param name="obj" type="BDProductGroup">Object of BDProductGroup 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:07 PM		Created function
		/// 
		/// </RevisionHistory>
		///
		/// </remarks>
		///
		internal static void PopulateObjectFromReader(BDProductGroupBase obj,IDataReader rdr) 
		{

			obj.ProductGroupID = rdr.GetInt32(rdr.GetOrdinal(BDProductGroupFields.ProductGroupID));
			obj.ProductGroupName = rdr.GetString(rdr.GetOrdinal(BDProductGroupFields.ProductGroupName));
			if (!rdr.IsDBNull(rdr.GetOrdinal(BDProductGroupFields.Notes)))
			{
				obj.Notes = rdr.GetString(rdr.GetOrdinal(BDProductGroupFields.Notes));
			}
			

		}