Exemplo n.º 1
0
        /// <summary>
        /// Loads a collection of MemberVipLineOfOperation objects from the database.
        /// </summary>
        /// <returns>A collection containing all of the MemberVipLineOfOperation objects in the database.</returns>
        public static MemberVipLineOfOperationCollection LoadCollection(string spName, SqlParameter[] parms)
        {
            MemberVipLineOfOperationCollection result = new MemberVipLineOfOperationCollection();

            using (SqlDataReader reader = SqlHelper.Default.ExecuteReader(spName, parms))
            {
                while (reader.Read())
                {
                    MemberVipLineOfOperation tmp = new MemberVipLineOfOperation();
                    tmp.LoadFromReader(reader);
                    result.Add(tmp);
                }
            }
            return(result);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Loads a MemberVipLineOfOperation object from the database using the given where clause
 /// </summary>
 /// <param name="whereClause">The filter expression for the query</param>
 /// <returns>A MemberVipLineOfOperation object</returns>
 public static MemberVipLineOfOperation LoadWhere(string whereClause)
 {
     SqlParameter[] parameterValues = new SqlParameter[] { new SqlParameter("@WhereClause", whereClause) };
     using (SqlDataReader reader = SqlHelper.Default.ExecuteReader("spMemberVipLineOfOperation_SelAll", parameterValues))
     {
         if (reader.Read())
         {
             MemberVipLineOfOperation result = new MemberVipLineOfOperation();
             result.LoadFromReader(reader);
             return(result);
         }
         else
         {
             return(null);
         }
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Loads a MemberVipLineOfOperation object from the database using the given VipLooId
 /// </summary>
 /// <param name="vipLooId">The primary key value</param>
 /// <returns>A MemberVipLineOfOperation object</returns>
 public static MemberVipLineOfOperation Load(Guid vipLooId)
 {
     SqlParameter[] parameterValues = new SqlParameter[] { new SqlParameter("@VipLooId", vipLooId) };
     using (SqlDataReader reader = SqlHelper.Default.ExecuteReader("spMemberVipLineOfOperation_SelRec", parameterValues))
     {
         if (reader.Read())
         {
             MemberVipLineOfOperation result = new MemberVipLineOfOperation();
             result.LoadFromReader(reader);
             return(result);
         }
         else
         {
             return(null);
         }
     }
 }