Exemplo n.º 1
0
 /// <summary>
 /// Create a new Category object.
 /// </summary>
 /// <param name="categoryId">Initial value of the CategoryId property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="description">Initial value of the Description property.</param>
 /// <param name="isActive">Initial value of the IsActive property.</param>
 /// <param name="isArchived">Initial value of the IsArchived property.</param>
 /// <param name="modifiedBy">Initial value of the ModifiedBy property.</param>
 /// <param name="modifiedDate">Initial value of the ModifiedDate property.</param>
 /// <param name="createdBy">Initial value of the CreatedBy property.</param>
 /// <param name="createdDate">Initial value of the CreatedDate property.</param>
 /// <param name="ordinal">Initial value of the Ordinal property.</param>
 /// <param name="foreColor">Initial value of the ForeColor property.</param>
 /// <param name="backColor">Initial value of the BackColor property.</param>
 public static Category CreateCategory(global::System.Int32 categoryId, global::System.String name, global::System.String description, global::System.Boolean isActive, global::System.Boolean isArchived, global::System.Int32 modifiedBy, global::System.DateTime modifiedDate, global::System.Int32 createdBy, global::System.DateTime createdDate, global::System.Int32 ordinal, global::System.String foreColor, global::System.String backColor)
 {
     Category category = new Category();
     category.CategoryId = categoryId;
     category.Name = name;
     category.Description = description;
     category.IsActive = isActive;
     category.IsArchived = isArchived;
     category.ModifiedBy = modifiedBy;
     category.ModifiedDate = modifiedDate;
     category.CreatedBy = createdBy;
     category.CreatedDate = createdDate;
     category.Ordinal = ordinal;
     category.ForeColor = foreColor;
     category.BackColor = backColor;
     return category;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Categories EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCategories(Category category)
 {
     base.AddObject("Categories", category);
 }