Dynamicweb 8 Documentation
RoundingCollection Class
Members  Example 

Represents a collection of Rounding objects.
Object Model
RoundingCollection ClassRounding Class
Syntax
Example
class MyPage : System.Web.UI.Page
{
    public Dynamicweb.eCommerce.Prices.RoundingCollection GetRoundings(string RoundingID)
    {
        string SQL = "SELECT * FROM EcomRoundings WHERE RoundingID = '" + RoundingID + "'";
        Dynamicweb.eCommerce.Prices.Rounding objRounding = default(Dynamicweb.eCommerce.Prices.Rounding);
        IDataReader objDataReader = Database.CreateDataReader(SQL, "Ecom.mdb");
        Dynamicweb.eCommerce.Prices.RoundingCollection col = new Dynamicweb.eCommerce.Prices.RoundingCollection();

        while (objDataReader.Read())
        {
            objRounding = new Dynamicweb.eCommerce.Prices.Rounding(objDataReader);
            col.Add(objRounding);
        }
 
        objDataReader.Close();
        objDataReader.Dispose();

        return col;
    }
}
Inheritance Hierarchy

System.Object
   System.Collections.ObjectModel.Collection<T>
      Dynamicweb.eCommerce.Prices.RoundingCollection

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

RoundingCollection Members
Dynamicweb.eCommerce.Prices Namespace

Send Feedback