/// <summary> /// Create a new Bed object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="bedName">Initial value of the BedName property.</param> /// <param name="ratePerDay">Initial value of the RatePerDay property.</param> /// <param name="bedTypeId">Initial value of the BedTypeId property.</param> public static Bed CreateBed(global::System.Int32 id, global::System.String bedName, global::System.Decimal ratePerDay, global::System.Int32 bedTypeId) { Bed bed = new Bed(); bed.Id = id; bed.BedName = bedName; bed.RatePerDay = ratePerDay; bed.BedTypeId = bedTypeId; return bed; }
/// <summary> /// Deprecated Method for adding a new object to the Beds EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToBeds(Bed bed) { base.AddObject("Beds", bed); }