public override List <CartLink> GetCartLinkList() { List <CartLink> list = new List <CartLink>(); using (SqlConnection connection = this.GetSqlConnection()) { string cmdText = "select * from SuCommerce_vw_CartLinks"; SqlCommand command = new SqlCommand(cmdText, connection) { CommandType = CommandType.Text }; connection.Open(); using (SqlDataReader reader = command.ExecuteReader(CommandBehavior.CloseConnection)) { CartLink link = null; while (reader.Read()) { link = new CartLink(); CommerceDataProvider.PopulateCartLinkList(reader, link); list.Add(link); } reader.Close(); connection.Close(); } } return(list); }