/// <summary> /// 用于向 OrganizationEvents EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddToOrganizationEvents(OrganizationEvent organizationEvent) { base.AddObject("OrganizationEvents", organizationEvent); }
/// <summary> /// 创建新的 OrganizationEvent 对象。 /// </summary> /// <param name="id">ID 属性的初始值。</param> /// <param name="organizationID">OrganizationID 属性的初始值。</param> /// <param name="eventName">EventName 属性的初始值。</param> /// <param name="eventContent">EventContent 属性的初始值。</param> /// <param name="eventType">EventType 属性的初始值。</param> /// <param name="handerSection">HanderSection 属性的初始值。</param> /// <param name="hander">Hander 属性的初始值。</param> /// <param name="result">Result 属性的初始值。</param> /// <param name="eventState">EventState 属性的初始值。</param> public static OrganizationEvent CreateOrganizationEvent(global::System.Int32 id, global::System.Int32 organizationID, global::System.String eventName, global::System.String eventContent, global::System.String eventType, global::System.String handerSection, global::System.String hander, global::System.String result, global::System.String eventState) { OrganizationEvent organizationEvent = new OrganizationEvent(); organizationEvent.ID = id; organizationEvent.OrganizationID = organizationID; organizationEvent.EventName = eventName; organizationEvent.EventContent = eventContent; organizationEvent.EventType = eventType; organizationEvent.HanderSection = handerSection; organizationEvent.Hander = hander; organizationEvent.Result = result; organizationEvent.EventState = eventState; return organizationEvent; }