internal static void SetAdditiveType(this AdditiveProduct additiveProduct, IAdditiveTypeKey additiveTypeKey) { if (additiveProduct == null) { throw new ArgumentNullException("additiveProduct"); } if (additiveTypeKey == null) { throw new ArgumentNullException("additiveTypeKey"); } additiveProduct.AdditiveType = null; additiveProduct.AdditiveTypeId = additiveTypeKey.AdditiveTypeKey_AdditiveTypeId; }
public ChileProductIngredientKey(IChileProductKey chileProductKey, IAdditiveTypeKey additiveTypeKey) : this(chileProductKey.ChileProductKey_ProductId, additiveTypeKey.AdditiveTypeKey_AdditiveTypeId) { }
public static AdditiveTypeKey ToAdditiveTypeKey(this IAdditiveTypeKey k) { return(new AdditiveTypeKey(k)); }