internal DAL.ProductAttributeValue CreateDALObject(intattUid, int prodUid)
{
DAL_scope.Transaction.Begin();
DAL.ProductAttributeValue newProductAttributeValue = newDAL.ProductAttributeValue();
newProductAttributeValue.AttributeUid = attUid; [A]
newProductAttributeValue.ProductUid = prodUid; [B]
DAL_scope.Add(newProductAttributeValue);
DAL_scope.Transaction.Commit();
return newProductAttributeValue;
}
and i need to reaplace [A] and [B] with the following instead to make it work (where RetrieveDALObjectByKey returns the openaccess generated class.:
newProductAttributeValue.Attribute = (newAttributeManager(DAL_scope)).RetrieveDALObjectByKey(attUid);
newProductAttributeValue.Product = (newProductManager(DAL_scope)).RetrieveDALObjectByKey(prodUid);
Your thoughts would be appreciated.