/// <summary> /// Populates the fields of a single objects from the columns found in an open reader. /// </summary> /// <param name="obj" type="ADRole">Object of ADRole 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(ADRoleBase obj, IDataReader rdr) { obj.RoleID = rdr.GetInt32(rdr.GetOrdinal(ADRoleFields.RoleID)); obj.RoleName = rdr.GetString(rdr.GetOrdinal(ADRoleFields.RoleName)); obj.RolePath = rdr.GetString(rdr.GetOrdinal(ADRoleFields.RolePath)); obj.MenuButton = rdr.GetString(rdr.GetOrdinal(ADRoleFields.MenuButton)); }
/// <summary> /// Populates the fields of a single objects from the columns found in an open reader. /// </summary> /// <param name="obj" type="ADRole">Object of ADRole 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(ADRoleBase obj, IDataReader rdr) { obj.RoleID = rdr.GetInt32(rdr.GetOrdinal(ADRoleFields.RoleID)); if (!rdr.IsDBNull(rdr.GetOrdinal(ADRoleFields.RoleName))) { obj.RoleName = rdr.GetString(rdr.GetOrdinal(ADRoleFields.RoleName)); } if (!rdr.IsDBNull(rdr.GetOrdinal(ADRoleFields.RolePath))) { obj.RolePath = rdr.GetString(rdr.GetOrdinal(ADRoleFields.RolePath)); } }
/// <summary> /// Populates the fields of a single objects from the columns found in an open reader. /// </summary> /// <param name="obj" type="ADRole">Object of ADRole to populate</param> /// <param name="rdr" type="IDataReader">An object that implements the IDataReader interface</param> /// /// <remarks> /// /// <RevisionHistory> /// Author Date Description /// DLGenerator 5/2/2015 4:01:01 AM Created function /// /// </RevisionHistory> /// /// </remarks> /// internal static void PopulateObjectFromReader(ADRoleBase obj,IDataReader rdr) { obj.RoleID = rdr.GetInt32(rdr.GetOrdinal(ADRoleFields.RoleID)); obj.RoleName = rdr.GetString(rdr.GetOrdinal(ADRoleFields.RoleName)); obj.RolePath = rdr.GetString(rdr.GetOrdinal(ADRoleFields.RolePath)); if (!rdr.IsDBNull(rdr.GetOrdinal(ADRoleFields.MenuButton))) { obj.MenuButton = rdr.GetString(rdr.GetOrdinal(ADRoleFields.MenuButton)); } }