/// <summary> /// 用于向 Work_Notice EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddToWork_Notice(Work_Notice work_Notice) { base.AddObject("Work_Notice", work_Notice); }
/// <summary> /// 创建新的 Work_Notice 对象。 /// </summary> /// <param name="id">ID 属性的初始值。</param> /// <param name="nTitle">NTitle 属性的初始值。</param> /// <param name="nContent">NContent 属性的初始值。</param> /// <param name="nCustomerID">NCustomerID 属性的初始值。</param> /// <param name="nCustomerName">NCustomerName 属性的初始值。</param> /// <param name="nlevel">Nlevel 属性的初始值。</param> /// <param name="addTime">AddTime 属性的初始值。</param> /// <param name="isDelete">IsDelete 属性的初始值。</param> public static Work_Notice CreateWork_Notice(global::System.Int32 id, global::System.String nTitle, global::System.String nContent, global::System.Int32 nCustomerID, global::System.String nCustomerName, global::System.Int32 nlevel, global::System.DateTime addTime, global::System.Boolean isDelete) { Work_Notice work_Notice = new Work_Notice(); work_Notice.ID = id; work_Notice.NTitle = nTitle; work_Notice.NContent = nContent; work_Notice.NCustomerID = nCustomerID; work_Notice.NCustomerName = nCustomerName; work_Notice.Nlevel = nlevel; work_Notice.AddTime = addTime; work_Notice.IsDelete = isDelete; return work_Notice; }