/// <summary> /// Deprecated Method for adding a new object to the Office EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToOffice(Office office) { base.AddObject("Office", office); }
/// <summary> /// Create a new Office object. /// </summary> /// <param name="oID">Initial value of the OID property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="orgNumber">Initial value of the OrgNumber property.</param> /// <param name="adress">Initial value of the Adress property.</param> /// <param name="zipCode">Initial value of the ZipCode property.</param> /// <param name="city">Initial value of the City property.</param> /// <param name="cID">Initial value of the CID property.</param> public static Office CreateOffice(global::System.Int32 oID, global::System.String name, global::System.Int32 orgNumber, global::System.String adress, global::System.Int32 zipCode, global::System.String city, global::System.Int32 cID) { Office office = new Office(); office.OID = oID; office.Name = name; office.OrgNumber = orgNumber; office.Adress = adress; office.ZipCode = zipCode; office.City = city; office.CID = cID; return office; }