/// <summary> /// Create a new Office object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="officeNumber">Initial value of the OfficeNumber property.</param> /// <param name="floorNumber">Initial value of the FloorNumber property.</param> /// <param name="buildingName">Initial value of the BuildingName property.</param> public static Office CreateOffice(global::System.Int32 id, global::System.Int32 officeNumber, global::System.Int16 floorNumber, global::System.String buildingName) { Office office = new Office(); office.ID = id; office.OfficeNumber = officeNumber; office.FloorNumber = floorNumber; office.BuildingName = buildingName; return office; }
/// <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); }