/// <summary> /// 用于向 CallHistories EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddToCallHistories(CallHistory callHistory) { base.AddObject("CallHistories", callHistory); }
/// <summary> /// 创建新的 CallHistory 对象。 /// </summary> /// <param name="id">Id 属性的初始值。</param> /// <param name="callScope">CallScope 属性的初始值。</param> /// <param name="callStartDateTime">CallStartDateTime 属性的初始值。</param> /// <param name="callType">CallType 属性的初始值。</param> /// <param name="callStopDateTime">CallStopDateTime 属性的初始值。</param> /// <param name="userName">UserName 属性的初始值。</param> public static CallHistory CreateCallHistory(global::System.String id, global::System.Int32 callScope, global::System.DateTime callStartDateTime, global::System.Int32 callType, global::System.DateTime callStopDateTime, global::System.String userName) { CallHistory callHistory = new CallHistory(); callHistory.Id = id; callHistory.CallScope = callScope; callHistory.CallStartDateTime = callStartDateTime; callHistory.CallType = callType; callHistory.CallStopDateTime = callStopDateTime; callHistory.UserName = userName; return callHistory; }