/// <summary> /// Create a new Occasion object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="guid">Initial value of the Guid property.</param> /// <param name="createdBy">Initial value of the CreatedBy property.</param> /// <param name="createdAt">Initial value of the CreatedAt property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="startDate">Initial value of the StartDate property.</param> /// <param name="endDate">Initial value of the EndDate property.</param> /// <param name="isCurrentOccasion">Initial value of the IsCurrentOccasion property.</param> /// <param name="timestamp">Initial value of the Timestamp property.</param> public static Occasion CreateOccasion(global::System.Int32 id, global::System.Guid guid, global::System.String createdBy, global::System.DateTime createdAt, global::System.String name, global::System.DateTime startDate, global::System.DateTime endDate, global::System.Boolean isCurrentOccasion, global::System.Byte[] timestamp) { Occasion occasion = new Occasion(); occasion.ID = id; occasion.Guid = guid; occasion.CreatedBy = createdBy; occasion.CreatedAt = createdAt; occasion.Name = name; occasion.StartDate = startDate; occasion.EndDate = endDate; occasion.IsCurrentOccasion = isCurrentOccasion; occasion.Timestamp = timestamp; return occasion; }
/// <summary> /// Deprecated Method for adding a new object to the Occasions EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToOccasions(Occasion occasion) { base.AddObject("Occasions", occasion); }