Load a Product Template Field for a Product
Posted: Fri Jun 05, 2015 5:33 am
Hello,
I am working on some site customization and I was wondering if there was a method or an nhibernate call to be able to load the value of a specific product template field for a product. As opposed to using
and having to do a foreach loop to get the field I want. Is there a way to skip the List and get the value directly?
I am working on some site customization and I was wondering if there was a method or an nhibernate call to be able to load the value of a specific product template field for a product. As opposed to using
Code: Select all
List<ProductTemplateField> templateFields = (from tf in product.TemplateFields
where tf.InputField.Name == "xxx"
select tf).ToList();