/// <summary>
 /// Create a new DeepLinkKeyword 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>
 /// <param name="contentType">Initial value of the ContentType property.</param>
 public static DeepLinkKeyword CreateDeepLinkKeyword(global::System.String word, global::System.Int32 weight, global::System.Int64 detectionCount, global::System.Int32 contentType)
 {
     DeepLinkKeyword deepLinkKeyword = new DeepLinkKeyword();
     deepLinkKeyword.Word = word;
     deepLinkKeyword.Weight = weight;
     deepLinkKeyword.DetectionCount = detectionCount;
     deepLinkKeyword.ContentType = contentType;
     return deepLinkKeyword;
 }
示例#2
0
 private void UpdateDeepLinkKeyword(DeepLinkKeyword keyword)
 {
     if (_deepLinkKeywordCounts.ContainsKey(keyword.Word))
     {
         _deepLinkKeywordCounts[keyword.Word]++;
     }
     else
     {
         _deepLinkKeywordCounts.Add(keyword.Word, 1);
     }
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the DeepLinkKeywords EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToDeepLinkKeywords(DeepLinkKeyword deepLinkKeyword)
 {
     base.AddObject("DeepLinkKeywords", deepLinkKeyword);
 }