/// <summary> /// Populates the fields of a single objects from the columns found in an open reader. /// </summary> /// <param name="obj" type="ADGroup">Object of ADGroup 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:02 PM Created function /// /// </RevisionHistory> /// /// </remarks> /// internal static void PopulateObjectFromReader(ADGroupBase obj, IDataReader rdr) { obj.GroupID = rdr.GetInt32(rdr.GetOrdinal(ADGroupFields.GroupID)); if (!rdr.IsDBNull(rdr.GetOrdinal(ADGroupFields.GroupName))) { obj.GroupName = rdr.GetString(rdr.GetOrdinal(ADGroupFields.GroupName)); } }
/// <summary> /// Populates the fields of a single objects from the columns found in an open reader. /// </summary> /// <param name="obj" type="ADGroup">Object of ADGroup 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:00 PM Created function /// /// </RevisionHistory> /// /// </remarks> /// internal static void PopulateObjectFromReader(ADGroupBase obj,IDataReader rdr) { obj.GroupID = rdr.GetInt32(rdr.GetOrdinal(ADGroupFields.GroupID)); if (!rdr.IsDBNull(rdr.GetOrdinal(ADGroupFields.GroupName))) { obj.GroupName = rdr.GetString(rdr.GetOrdinal(ADGroupFields.GroupName)); } }