/// <summary> /// Deprecated Method for adding a new object to the Units EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToUnits(Unit unit) { base.AddObject("Units", unit); }
/// <summary> /// Create a new Unit object. /// </summary> /// <param name="unitId">Initial value of the UnitId property.</param> /// <param name="address">Initial value of the Address property.</param> /// <param name="city">Initial value of the City property.</param> /// <param name="state">Initial value of the State property.</param> /// <param name="bed">Initial value of the Bed property.</param> /// <param name="bathroom">Initial value of the Bathroom property.</param> /// <param name="squareFoot">Initial value of the SquareFoot property.</param> /// <param name="yearBuilt">Initial value of the YearBuilt property.</param> /// <param name="description">Initial value of the Description property.</param> /// <param name="primaryPhoto">Initial value of the PrimaryPhoto property.</param> public static Unit CreateUnit(global::System.Int32 unitId, global::System.String address, global::System.String city, global::System.String state, global::System.Int32 bed, global::System.Double bathroom, global::System.Double squareFoot, global::System.Int32 yearBuilt, global::System.String description, global::System.String primaryPhoto) { Unit unit = new Unit(); unit.UnitId = unitId; unit.Address = address; unit.City = city; unit.State = state; unit.Bed = bed; unit.Bathroom = bathroom; unit.SquareFoot = squareFoot; unit.YearBuilt = yearBuilt; unit.Description = description; unit.PrimaryPhoto = primaryPhoto; return unit; }