/// <summary> /// 用于向 WorkMessages EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddToWorkMessages(WorkMessage workMessage) { base.AddObject("WorkMessages", workMessage); }
/// <summary> /// 创建新的 WorkMessage 对象。 /// </summary> /// <param name="id">Id 属性的初始值。</param> /// <param name="authorizationId">AuthorizationId 属性的初始值。</param> /// <param name="content">Content 属性的初始值。</param> /// <param name="descript">Descript 属性的初始值。</param> /// <param name="state">State 属性的初始值。</param> public static WorkMessage CreateWorkMessage(global::System.Int32 id, global::System.Int32 authorizationId, global::System.String content, global::System.String descript, global::System.String state) { WorkMessage workMessage = new WorkMessage(); workMessage.Id = id; workMessage.AuthorizationId = authorizationId; workMessage.Content = content; workMessage.Descript = descript; workMessage.State = state; return workMessage; }