/// <summary> /// Create a new Presence object. /// </summary> /// <param name="presenceID">Initial value of the PresenceID property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="date">Initial value of the Date property.</param> /// <param name="value">Initial value of the Value property.</param> public static Presence CreatePresence(global::System.Int32 presenceID, global::System.String name, global::System.DateTime date, global::System.Int32 value) { Presence presence = new Presence(); presence.PresenceID = presenceID; presence.Name = name; presence.Date = date; presence.Value = value; return presence; }
/// <summary> /// Deprecated Method for adding a new object to the Presences EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPresences(Presence presence) { base.AddObject("Presences", presence); }