/// <summary> /// 创建新的 DocumentContent 对象。 /// </summary> /// <param name="id">ID 属性的初始值。</param> /// <param name="tile">Tile 属性的初始值。</param> /// <param name="docBody">DocBody 属性的初始值。</param> /// <param name="docAttribute">DocAttribute 属性的初始值。</param> /// <param name="documentManageID">DocumentManageID 属性的初始值。</param> /// <param name="attechParent">AttechParent 属性的初始值。</param> public static DocumentContent CreateDocumentContent(global::System.Int32 id, global::System.String tile, global::System.String docBody, global::System.String docAttribute, global::System.Int32 documentManageID, global::System.Int32 attechParent) { DocumentContent documentContent = new DocumentContent(); documentContent.ID = id; documentContent.Tile = tile; documentContent.DocBody = docBody; documentContent.DocAttribute = docAttribute; documentContent.DocumentManageID = documentManageID; documentContent.AttechParent = attechParent; return documentContent; }
/// <summary> /// 用于向 DocumentContents EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddToDocumentContents(DocumentContent documentContent) { base.AddObject("DocumentContents", documentContent); }