/// <summary> /// Deprecated Method for adding a new object to the DisabilityCategories EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToDisabilityCategories(DisabilityCategory disabilityCategory) { base.AddObject("DisabilityCategories", disabilityCategory); }
/// <summary> /// Create a new DisabilityCategory object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="description">Initial value of the Description property.</param> /// <param name="active">Initial value of the Active property.</param> /// <param name="createdBy">Initial value of the CreatedBy property.</param> /// <param name="createdOn">Initial value of the CreatedOn property.</param> /// <param name="lastModifiedBy">Initial value of the LastModifiedBy property.</param> /// <param name="lastModifiedOn">Initial value of the LastModifiedOn property.</param> public static DisabilityCategory CreateDisabilityCategory(global::System.Int32 id, global::System.String description, global::System.Boolean active, global::System.Int32 createdBy, global::System.DateTime createdOn, global::System.Int32 lastModifiedBy, global::System.DateTime lastModifiedOn) { DisabilityCategory disabilityCategory = new DisabilityCategory(); disabilityCategory.ID = id; disabilityCategory.Description = description; disabilityCategory.Active = active; disabilityCategory.CreatedBy = createdBy; disabilityCategory.CreatedOn = createdOn; disabilityCategory.LastModifiedBy = lastModifiedBy; disabilityCategory.LastModifiedOn = lastModifiedOn; return disabilityCategory; }