/// <summary> /// Deprecated Method for adding a new object to the Locations EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToLocations(Location location) { base.AddObject("Locations", location); }
/// <summary> /// Create a new Location object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="code">Initial value of the Code property.</param> /// <param name="description">Initial value of the Description property.</param> /// <param name="capacity">Initial value of the Capacity property.</param> /// <param name="hasProjector">Initial value of the HasProjector property.</param> public static Location CreateLocation(global::System.Int32 id, global::System.String code, global::System.String description, global::System.Int32 capacity, global::System.Boolean hasProjector) { Location location = new Location(); location.Id = id; location.Code = code; location.Description = description; location.Capacity = capacity; location.HasProjector = hasProjector; return location; }