Example #1
0
        public static PluginZoneCollection SelectAll()
        {
            PluginZoneCollection List = new PluginZoneCollection();

            using (IDataReader rd = SqlHelper.ExecuteReader(DAL.con(), CommandType.StoredProcedure, "sp_tblPluginZone_Select_SelectAll_hoangda"))
            {
                while (rd.Read())
                {
                    List.Add(getFromReader(rd));
                }
            }
            return(List);
        }
Example #2
0
        public static PluginZoneCollection SelectByZid(SqlConnection con, int Z_ID)
        {
            PluginZoneCollection List = new PluginZoneCollection();

            SqlParameter[] obj = new SqlParameter[] {
                new SqlParameter("Z_ID", Z_ID)
            };
            using (IDataReader rd = SqlHelper.ExecuteReader(con, CommandType.StoredProcedure, "sp_tblPluginZone_Select_SelectByZId_hoangda", obj))
            {
                while (rd.Read())
                {
                    List.Add(getFromReader(rd));
                }
            }
            return(List);
        }