protected void btnSaveAttribute_Click(object sender, EventArgs e)
 {
     ProductAttribute attribute = BasicService<ProductAttribute, Guid>.GetByID(CurrentAttributeID);
     if (attribute == null)
         attribute = new ProductAttribute();
     attribute.Name = txtAttributeName.Text;
     attribute.FullDescription = txtAttributeDesc.Text;
     BasicService<ProductAttribute, Guid>.SaveOrUpdate(attribute);
 }
 public ProductAttributeMapping(ProductAttributeMappingId id, string textvalue, int? intvalue, decimal? decimalvalue, Product product, ProductAttribute productattribute)
 {
     this.id= id;
     this.textvalue= textvalue;
     this.intvalue= intvalue;
     this.decimalvalue= decimalvalue;
     this.product= product;
     this.productattribute= productattribute;
 }
 public ProductAttributeMapping(ProductAttributeMappingId id, Product product, ProductAttribute productattribute)
 {
     this.id= id;
     this.product= product;
     this.productattribute= productattribute;
 }