/// <summary> /// Create a new LunchMenuKeyword object. /// </summary> /// <param name="word">Initial value of the Word property.</param> /// <param name="weight">Initial value of the Weight property.</param> /// <param name="detectionCount">Initial value of the DetectionCount property.</param> public static LunchMenuKeyword CreateLunchMenuKeyword(global::System.String word, global::System.Int32 weight, global::System.Int64 detectionCount) { LunchMenuKeyword lunchMenuKeyword = new LunchMenuKeyword(); lunchMenuKeyword.Word = word; lunchMenuKeyword.Weight = weight; lunchMenuKeyword.DetectionCount = detectionCount; return lunchMenuKeyword; }
private void UpdateLunchMenuKeyword(LunchMenuKeyword keyword) { if (_lunchMenuKeywordCounts.ContainsKey(keyword.Word)) { _lunchMenuKeywordCounts[keyword.Word]++; } else { _lunchMenuKeywordCounts.Add(keyword.Word, 1); } }
/// <summary> /// Deprecated Method for adding a new object to the LunchMenuKeywords EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToLunchMenuKeywords(LunchMenuKeyword lunchMenuKeyword) { base.AddObject("LunchMenuKeywords", lunchMenuKeyword); }