/// <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="id">Initial value of the Id property.</param> /// <param name="rowVersion">Initial value of the RowVersion property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="createDate">Initial value of the CreateDate property.</param> public static Office CreateOffice(global::System.Int32 id, global::System.Byte[] rowVersion, global::System.String name, global::System.DateTime createDate) { Office office = new Office(); office.Id = id; office.RowVersion = rowVersion; office.Name = name; office.CreateDate = createDate; return office; }