コード例 #1
0
 /// <summary>
 /// Create a new category object.
 /// </summary>
 /// <param name="id_category">Initial value of the id_category property.</param>
 /// <param name="name">Initial value of the name property.</param>
 /// <param name="id_category_type">Initial value of the id_category_type property.</param>
 /// <param name="id_category_type_inside">Initial value of the id_category_type_inside property.</param>
 /// <param name="image_index">Initial value of the image_index property.</param>
 public static category Createcategory(global::System.Int32 id_category, global::System.String name, global::System.Int32 id_category_type, global::System.Int32 id_category_type_inside, global::System.Int32 image_index)
 {
     category category = new category();
     category.id_category = id_category;
     category.name = name;
     category.id_category_type = id_category_type;
     category.id_category_type_inside = id_category_type_inside;
     category.image_index = image_index;
     return category;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the category EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTocategory(category category)
 {
     base.AddObject("category", category);
 }