Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Stores Namespace / Currency Class
Properties Methods


In This Topic
    Currency Class Members
    In This Topic

    The following tables list the members exposed by Currency.

    Public Constructors
     NameDescription
    Public ConstructorOverloaded.   
    Top
    Public Properties
     NameDescription
    Public Property Gets or sets a value indicating whether AutoUpdate  
    Public Property Gets or sets the identity of this entity.  
    Public Property Gets or sets the CurrencySymbol  
    Public Property Gets or sets the DecimalDigits  
    Public Property Gets or sets the DecimalSeparator  
    Public Property Gets or sets the ExchangeRate  
    Public Property Gets a manager that provides strongly typed access to extended fields. (Inherited from CommerceBuilder.DomainModel.Entity)
    Public Property Gets or sets the GroupSeparator  
    Public Property Gets or sets the GroupSizes  
    Public Property Gets a value indicating whether the entity have extended fields or not (Inherited from CommerceBuilder.DomainModel.Entity)
    Public PropertyOverridden.  Gets or sets the Id for the entity.  
    Public Property Gets a value indicating whether this is the base currency for the store  
    Public Property Gets or sets the ISOCode  
    Public Property Gets or sets the ISOCodePattern  
    Public Property Gets or sets the LastUpdate  
    Public Property Gets or sets the Name  
    Public Property Gets or sets the NegativePattern  
    Public Property Gets or sets the NegativeSign  
    Public Property Gets or sets the PositivePattern  
    Public Property Gets or sets an instance of the repository for this entity (Inherited from CommerceBuilder.DomainModel.EntityWithTypedId<int>)
    Public Property Gets or sets the Store  
    Top
    Protected Properties
     NameDescription
    Protected Property Gets NumberFormat instance configured with the format rules defined by this currency.  
    Top
    Public Methods
     NameDescription
    Public Method Converts an amount from the base currency into the currency specified by this instance.  
    Public Method Converts an amount in the currency specified by this instance into the base currency.  
    Public Method Determines if this object instance is equal to another. (Inherited from CommerceBuilder.DomainModel.EntityWithTypedId<int>)
    Public Method Converts the value of a specified object to an equivalent string representation using specified format and culture-specific formatting information.  
    Public Method Formats the currency  
    Public Method Returns an object that provides formatting services for the specified type.  
    Public MethodServes as the default hash function. (Inherited from CommerceBuilder.DomainModel.EntityWithTypedId<int>)
    Public Method Gets the signature properties for the class type. (Inherited from CommerceBuilder.DomainModel.BaseObject)
    Public Method You may override this method to provide your own comparison routine. (Inherited from CommerceBuilder.DomainModel.BaseObject)
    Public Method Transient objects are not associated with an item already in storage. For instance, a Customer is transient if its Id is 0. It's virtual to allow NHibernate-backed objects to be lazily loaded. (Inherited from CommerceBuilder.DomainModel.EntityWithTypedId<int>)
    Public Method If an exchange rate provider is configured, this method will attempt to update the exchange rate based from the provider data.  
    Top
    Protected Methods
     NameDescription
    Protected Method Enforces the template method pattern to have child objects determine which specific properties should and should not be included in the object signature comparison. Note that the the BaseObject already takes care of performance caching, so this method shouldn't worry about caching...just return the goods man! (Inherited from CommerceBuilder.DomainModel.EntityWithTypedId<int>)
    Protected Method

    When NHibernate proxies objects, it masks the type of the actual entity object. This wrapper burrows into the proxied object to get its actual type.

    Although this assumes NHibernate is being used, it doesn't require any NHibernate related dependencies and has no bad side effects if NHibernate isn't being used.

    Related discussion is at http://groups.google.com/group/sharp-architecture/browse_thread/thread/ddd05f9baede023a ...thanks Jay Oliver!

    (Inherited from CommerceBuilder.DomainModel.BaseObject)
    Top
    Extension Methods
     NameDescription
    Public Extension Method Delete the entity from the database
    Public Extension Method Save the entity to the database
    Public Extension MethodOverloaded.  Use this method to bulid query string from NameValueCollection
    Top
    See Also