/// <summary> /// Deprecated Method for adding a new object to the Venues EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToVenues(Venue venue) { base.AddObject("Venues", venue); }
/// <summary> /// Create a new Venue object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="address1">Initial value of the Address1 property.</param> /// <param name="created">Initial value of the Created property.</param> /// <param name="modified">Initial value of the Modified property.</param> public static Venue CreateVenue(global::System.Int32 id, global::System.String name, global::System.String address1, global::System.DateTime created, global::System.DateTime modified) { Venue venue = new Venue(); venue.ID = id; venue.Name = name; venue.Address1 = address1; venue.Created = created; venue.Modified = modified; return venue; }