/// <summary> /// Deprecated Method for adding a new object to the Persons EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPersons(Persons persons) { base.AddObject("Persons", persons); }
/// <summary> /// Create a new Persons object. /// </summary> /// <param name="personID">Initial value of the PersonID property.</param> /// <param name="forename">Initial value of the Forename property.</param> /// <param name="eMail">Initial value of the EMail property.</param> /// <param name="isOnline">Initial value of the IsOnline property.</param> /// <param name="addDate">Initial value of the AddDate property.</param> /// <param name="rowVersion">Initial value of the RowVersion property.</param> public static Persons CreatePersons(global::System.Int32 personID, global::System.String forename, global::System.String eMail, global::System.Boolean isOnline, global::System.DateTime addDate, global::System.Byte[] rowVersion) { Persons persons = new Persons(); persons.PersonID = personID; persons.Forename = forename; persons.EMail = eMail; persons.IsOnline = isOnline; persons.AddDate = addDate; persons.RowVersion = rowVersion; return persons; }