Dynamicweb 8 Documentation
GroupShopRelationCollection Class
Members  Example 

Collection of relation objects between shops and product groups
Object Model
GroupShopRelationCollection ClassGroupShopRelation Class
Syntax
'Declaration
 
<SerializableAttribute()> 
Public Class GroupShopRelationCollection 
   Inherits System.Collections.ObjectModel.Collection(Of GroupShopRelation)
Example
class MyPage : System.Web.UI.Page
{
   private GroupShopRelationCollection LoadGroupShopRelations()
   {
       GroupShopRelationCollection allRelations = new GroupShopRelationCollection();
       using (IDataReader relationReader = Database.CreateDataReader("SELECT * FROM EcomShopGroupRelation", "Ecom.mdb"))
       {
           while (relationReader.Read())
           {
               GroupShopRelation relation = new GroupShopRelation(relationReader);
               allRelations.Add(relation);
           }
       }
       return allRelations;
   }
}
Inheritance Hierarchy

System.Object
   System.Collections.ObjectModel.Collection<T>
      Dynamicweb.eCommerce.Products.GroupShopRelationCollection

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

GroupShopRelationCollection Members
Dynamicweb.eCommerce.Products Namespace

Send Feedback