Пример #1
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);
 }
Пример #2
0
 /// <summary>
 /// Create a new Category object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="iDDivision">Initial value of the IDDivision property.</param>
 /// <param name="deleted">Initial value of the Deleted property.</param>
 public static Category CreateCategory(global::System.Guid id, global::System.String name, global::System.Guid iDDivision, global::System.Boolean deleted)
 {
     Category category = new Category();
     category.ID = id;
     category.Name = name;
     category.IDDivision = iDDivision;
     category.Deleted = deleted;
     return category;
 }