/// <summary> /// Populates the fields of a single objects from the columns found in an open reader. /// </summary> /// <param name="obj" type="ADGroupRole">Object of ADGroupRole 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:36:59 PM Created function /// /// </RevisionHistory> /// /// </remarks> /// internal static void PopulateObjectFromReader(ADGroupRoleBase obj, IDataReader rdr) { obj.GroupRoleID = rdr.GetInt32(rdr.GetOrdinal(ADGroupRoleFields.GroupRoleID)); obj.GroupID = rdr.GetInt32(rdr.GetOrdinal(ADGroupRoleFields.GroupID)); obj.RoleID = rdr.GetInt32(rdr.GetOrdinal(ADGroupRoleFields.RoleID)); }
/// <summary> /// Populates the fields of a single objects from the columns found in an open reader. /// </summary> /// <param name="obj" type="ADGroupRole">Object of ADGroupRole 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 11:07:46 PM Created function /// /// </RevisionHistory> /// /// </remarks> /// internal static void PopulateObjectFromReader(ADGroupRoleBase obj, IDataReader rdr) { obj.GroupRoleID = rdr.GetInt32(rdr.GetOrdinal(ADGroupRoleFields.GroupRoleID)); obj.GroupID = rdr.GetInt32(rdr.GetOrdinal(ADGroupRoleFields.GroupID)); obj.RoleID = rdr.GetInt32(rdr.GetOrdinal(ADGroupRoleFields.RoleID)); }