示例#1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the CategoryRelation EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCategoryRelation(CategoryRelation categoryRelation)
 {
     base.AddObject("CategoryRelation", categoryRelation);
 }
示例#2
0
 /// <summary>
 /// Create a new CategoryRelation object.
 /// </summary>
 /// <param name="categoryRelationId">Initial value of the CategoryRelationId property.</param>
 /// <param name="parentCategoryId">Initial value of the ParentCategoryId property.</param>
 /// <param name="childCategoryId">Initial value of the ChildCategoryId property.</param>
 public static CategoryRelation CreateCategoryRelation(global::System.Int32 categoryRelationId, global::System.Int32 parentCategoryId, global::System.Int32 childCategoryId)
 {
     CategoryRelation categoryRelation = new CategoryRelation();
     categoryRelation.CategoryRelationId = categoryRelationId;
     categoryRelation.ParentCategoryId = parentCategoryId;
     categoryRelation.ChildCategoryId = childCategoryId;
     return categoryRelation;
 }