コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ContentPage EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToContentPage(ContentPage contentPage)
 {
     base.AddObject("ContentPage", contentPage);
 }
コード例 #2
0
 /// <summary>
 /// Create a new ContentPage object.
 /// </summary>
 /// <param name="cp_id">Initial value of the cp_id property.</param>
 /// <param name="cp_title">Initial value of the cp_title property.</param>
 /// <param name="cp_content">Initial value of the cp_content property.</param>
 /// <param name="l_id">Initial value of the l_id property.</param>
 /// <param name="cp_visiblefor">Initial value of the cp_visiblefor property.</param>
 /// <param name="cp_metadescription">Initial value of the cp_metadescription property.</param>
 /// <param name="cp_metakeyword">Initial value of the cp_metakeyword property.</param>
 public static ContentPage CreateContentPage(global::System.Int32 cp_id, global::System.String cp_title, global::System.String cp_content, global::System.Int32 l_id, global::System.Int32 cp_visiblefor, global::System.String cp_metadescription, global::System.String cp_metakeyword)
 {
     ContentPage contentPage = new ContentPage();
     contentPage.cp_id = cp_id;
     contentPage.cp_title = cp_title;
     contentPage.cp_content = cp_content;
     contentPage.l_id = l_id;
     contentPage.cp_visiblefor = cp_visiblefor;
     contentPage.cp_metadescription = cp_metadescription;
     contentPage.cp_metakeyword = cp_metakeyword;
     return contentPage;
 }