Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Products Namespace / ProductVariant Class
Fields Properties Methods


In This Topic
    ProductVariant Class Members
    In This Topic

    The following tables list the members exposed by ProductVariant.

    Public Constructors
     NameDescription
    Public ConstructorOverloaded.   
    Top
    Public Fields
     NameDescription
    Public Field This constant is the number of columns for option Ids in the ProductVariants table  
    Top
    Public Properties
     NameDescription
    Public Property Gets or sets the AvailabilityDate  
    Public Property Gets or sets a value indicating whether this variant is Available  
    Public Property Gets the Calculated Product Variant price  
    Public Property Gets or sets the CostOfGoods  
    Public Property Gets a manager that provides strongly typed access to extended fields. (Inherited from CommerceBuilder.DomainModel.Entity)
    Public Property Gets or sets the GTIN  
    Public Property Gets or sets the HandlingCharges  
    Public Property Gets a value indicating whether the entity have extended fields or not (Inherited from CommerceBuilder.DomainModel.Entity)
    Public Property Gets or sets the Height  
    Public Property Gets or sets the IconUrl  
    Public PropertyOverridden.  Gets or sets the Id for the entity.  
    Public Property Gets or sets the ImageUrl  
    Public Property Gets or sets the InStock  
    Public Property Gets or sets the InStockWarningLevel  
    Public Property Gets a value indicating whether any properties of this variant are different from the calculated values.  
    Public Property Gets a value indicating whether the variant has valid values specified for the option choices  
    Public Property Gets or sets the Length  
    Public Property Gets or sets the ModelNumber  
    Public Property Gets or sets the MSRP  
    Public Property Gets or sets the Option1  
    Public Property Gets or sets the Option2  
    Public Property Gets or sets the Option3  
    Public Property Gets or sets the Option4  
    Public Property Gets or sets the Option5  
    Public Property Gets or sets the Option6  
    Public Property Gets or sets the Option7  
    Public Property Gets or sets the Option8  
    Public Property Gets the option list for the variant, in the form of #,#,#,#,#,#,#,#  
    Public Property Gets or sets the Price  
    Public Property Gets or sets the price modifier mode.  
    Public Property Gets or sets the PriceModeId  
    Public Property Gets or sets the Product  
    Public Property Gets or sets the Product for this entity.  
    Public Property Gets or sets the identity of this entity.  
    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 record version.  
    Public Property Gets or sets the Sku  
    Public Property Gets or sets the ThumbnailUrl  
    Public Property Gets or sets the VariantName  
    Public Property Gets or sets the Weight  
    Public Property Gets or sets the weight modifier mode.  
    Public Property Gets or sets the WeightModeId  
    Public Property Gets or sets the Width  
    Top
    Public Methods
     NameDescription
    Public Method Calculates variant  
    Public Method Create a shallow copy of this ProductVariant instance.  
    Public Method Determines if this object instance is equal to another. (Inherited from CommerceBuilder.DomainModel.EntityWithTypedId<int>)
    Public MethodServes as the default hash function. (Inherited from CommerceBuilder.DomainModel.EntityWithTypedId<int>)
    Public Method Gets an array of option choices that apply to this variant  
    Public Method Gets the name of the selected option choice  
    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>)
    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