public ProductAttributeNameEntity(ProductAttributeName ProductAttributeName, params object[] args) : base(ProductAttributeName)
 {
     foreach (object arg in args)
     {
         if (arg is Language Language)
         {
             LanguageEntity = new LanguageEntity(Language);
         }
         if (arg is ProductAttribute ProductAttribute)
         {
             ProductAttributeEntity = new ProductAttributeEntity(ProductAttribute);
         }
     }
 }
示例#2
0
 public ProductValueEntity(ProductValue ProductValue, params object[] args) : base(ProductValue)
 {
     foreach (object arg in args)
     {
         if (arg is ProductAttribute Attribute)
         {
             AttributeEntity = new ProductAttributeEntity(Attribute);
         }
         if (arg is Language Language)
         {
             LanguageEntity = new LanguageEntity(Language);
         }
         if (arg is Product Product)
         {
             ProductEntity = new ProductEntity(Product);
         }
     }
 }