コード例 #1
0
        /// <summary>
        /// need to decide how to handle the
        /// </summary>
        /// <param name="upd"></param>
        private void UpdateIngredientXref(UpdateObject upd)
        {
            var linkedingredients = new MenuItemIngredient();

            linkedingredients.menuitemingredientid = upd.xrefpk;
            linkedingredients.menuitemid           = upd.menuid;
            linkedingredients.ingredientid         = upd.ingredientid;
            linkedingredients.sortindex            = upd.sortindex;
            linkedingredients.ServiceObjectId      = upd.ServiceObjectId ?? new Guid();
            linkedingredients.DataObjectId         = upd.DataObjectId ?? new Guid();
            linkedingredients.Insert();
        }
コード例 #2
0
 /// <summary>
 /// need to decide how to handle the
 /// </summary>
 /// <param name="upd"></param>
 private void UpdateIngredientXref(UpdateObject upd)
 {
     var linkedingredients = new MenuItemIngredient();
         linkedingredients.menuitemingredientid = upd.xrefpk;
         linkedingredients.menuitemid = upd.menuid;
         linkedingredients.ingredientid = upd.ingredientid;
         linkedingredients.sortindex = upd.sortindex;
         linkedingredients.ServiceObjectId = upd.ServiceObjectId ?? new Guid();
         linkedingredients.DataObjectId = upd.DataObjectId ?? new Guid();
         linkedingredients.Insert();
 }