/// <summary> /// 用于向 SmartMatch EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddToSmartMatch(SmartMatch smartMatch) { base.AddObject("SmartMatch", smartMatch); }
/// <summary> /// 创建新的 SmartMatch 对象。 /// </summary> /// <param name="matchId">MatchId 属性的初始值。</param> /// <param name="sourceType">SourceType 属性的初始值。</param> /// <param name="sourceId">SourceId 属性的初始值。</param> /// <param name="targetType">TargetType 属性的初始值。</param> /// <param name="targetIds">TargetIds 属性的初始值。</param> public static SmartMatch CreateSmartMatch(global::System.Int32 matchId, global::System.String sourceType, global::System.Int32 sourceId, global::System.String targetType, global::System.String targetIds) { SmartMatch smartMatch = new SmartMatch(); smartMatch.MatchId = matchId; smartMatch.SourceType = sourceType; smartMatch.SourceId = sourceId; smartMatch.TargetType = targetType; smartMatch.TargetIds = targetIds; return smartMatch; }