/// <summary> /// Deprecated Method for adding a new object to the Offices EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToOffices(Office office) { base.AddObject("Offices", office); }
/// <summary> /// Create a new Office object. /// </summary> /// <param name="contractCode">Initial value of the contractCode property.</param> /// <param name="companyCode">Initial value of the companyCode property.</param> /// <param name="code">Initial value of the code property.</param> /// <param name="version">Initial value of the version property.</param> /// <param name="description">Initial value of the description property.</param> /// <param name="sortIndex">Initial value of the sortIndex property.</param> /// <param name="active_p">Initial value of the active_p property.</param> public static Office CreateOffice(global::System.Decimal contractCode, global::System.Decimal companyCode, global::System.String code, global::System.Decimal version, global::System.String description, global::System.Int16 sortIndex, global::System.String active_p) { Office office = new Office(); office.contractCode = contractCode; office.companyCode = companyCode; office.code = code; office.version = version; office.description = description; office.sortIndex = sortIndex; office.active_p = active_p; return office; }