Beispiel #1
0
        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)
 {
 }
Beispiel #3
0
 public static AdditiveTypeKey ToAdditiveTypeKey(this IAdditiveTypeKey k)
 {
     return(new AdditiveTypeKey(k));
 }