/// <summary> /// Loads a collection of MemberApply4TempVipLog objects from the database. /// </summary> /// <returns>A collection containing all of the MemberApply4TempVipLog objects in the database.</returns> public static MemberApply4TempVipLogCollection LoadCollection(string spName, SqlParameter[] parms) { MemberApply4TempVipLogCollection result = new MemberApply4TempVipLogCollection(); using (SqlDataReader reader = SqlHelper.Default.ExecuteReader(spName, parms)) { while (reader.Read()) { MemberApply4TempVipLog tmp = new MemberApply4TempVipLog(); tmp.LoadFromReader(reader); result.Add(tmp); } } return(result); }
/// <summary> /// Loads a MemberApply4TempVipLog object from the database using the given where clause /// </summary> /// <param name="whereClause">The filter expression for the query</param> /// <returns>A MemberApply4TempVipLog object</returns> public static MemberApply4TempVipLog LoadWhere(string whereClause) { SqlParameter[] parameterValues = new SqlParameter[] { new SqlParameter("@WhereClause", whereClause) }; using (SqlDataReader reader = SqlHelper.Default.ExecuteReader("spMemberApply4TempVipLog_SelAll", parameterValues)) { if (reader.Read()) { MemberApply4TempVipLog result = new MemberApply4TempVipLog(); result.LoadFromReader(reader); return(result); } else { return(null); } } }
/// <summary> /// Loads a MemberApply4TempVipLog object from the database using the given LogId /// </summary> /// <param name="logId">The primary key value</param> /// <returns>A MemberApply4TempVipLog object</returns> public static MemberApply4TempVipLog Load(Guid logId) { SqlParameter[] parameterValues = new SqlParameter[] { new SqlParameter("@LogId", logId) }; using (SqlDataReader reader = SqlHelper.Default.ExecuteReader("spMemberApply4TempVipLog_SelRec", parameterValues)) { if (reader.Read()) { MemberApply4TempVipLog result = new MemberApply4TempVipLog(); result.LoadFromReader(reader); return(result); } else { return(null); } } }