/// <summary> /// Deprecated Method for adding a new object to the BusinessUnits EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToBusinessUnits(BusinessUnit businessUnit) { base.AddObject("BusinessUnits", businessUnit); }
/// <summary> /// Create a new BusinessUnit object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="linkToMandatory">Initial value of the LinkToMandatory property.</param> /// <param name="lastUpdated">Initial value of the LastUpdated property.</param> /// <param name="lastUpdatedBy">Initial value of the LastUpdatedBy property.</param> public static BusinessUnit CreateBusinessUnit(global::System.Int32 id, global::System.String name, global::System.Boolean linkToMandatory, global::System.DateTime lastUpdated, global::System.String lastUpdatedBy) { BusinessUnit businessUnit = new BusinessUnit(); businessUnit.ID = id; businessUnit.Name = name; businessUnit.LinkToMandatory = linkToMandatory; businessUnit.LastUpdated = lastUpdated; businessUnit.LastUpdatedBy = lastUpdatedBy; return businessUnit; }